Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Java oddity

Author: Renze Steenhuisen

Date: 08:22:24 09/09/02

Go up one level in this thread


I would NOT say it is a JAVA odity, I suggest trying exactly the same thing in
all other major prog.languages, you WILL the same odity

No offense

On September 09, 2002 at 10:04:12, Ed Panek wrote:

>long x;
>double y;
>
>y = 2.01;
>x = (long)(y * 1000);
>
>
>guess what x equals? ...
>
>No, not 2010, but 2009 !!!!!!!!!!!!!!!
>
>Ed



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.