[kaffe] Bug Report: Math.round() problem
Arnaud Vandyck
arnaud.vandyck at ulg.ac.be
Wed Feb 25 14:04:01 PST 2004
"Mr Carrot" <mr_carrot_73 at hotmail.com> writes:
> I have found that Math.round() returns a large negative number instead
> of returning the rounded version of the argument. I am using Kaffe
> version 1.0.7.
Hi,
I did try your program with 1.1.3 and the output is correct:
arnaud at oz:/tmp$ jikes-classpath HelloWorld.java
arnaud at oz:/tmp$ kaffe HelloWorld
Hello World
Math.round(100D) = 100
Math.floor(100D) = 100.0
So I suppose the problem does not exist in 1.1.4. I suggest you update
to the latest kaffe.
Cheers,
--
Arnaud
More information about the kaffe
mailing list