Computer Chess Club Archives


Search

Terms

Messages

Subject: Java oddity

Author: Ed Panek

Date: 07:04:12 09/09/02


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