[kaffe] Bug Report: Math.round() problem

Arnaud Vandyck arnaud.vandyck@ulg.ac.be
Wed Feb 25 14:04:01 2004


"Mr Carrot" <mr_carrot_73@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@oz:/tmp$ jikes-classpath HelloWorld.java
arnaud@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