Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Java oddity

Author: Vincent Diepeveen

Date: 09:05:27 09/09/02

Go up one level in this thread


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

Which compiler did you use?

It is exactly these reasons that i was very sick from
intel c++ compiler, because it is doing everything
wrong with casts of floating point math.
you write 'java oddity' above. intel j++ exists nowadays?

>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.