Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 2000 13:27:21 +0100
From:      "Koster, K.J." <K.J.Koster@kpn.com>
To:        'SHUDO Kazuyuki' <shudoh@muraoka.info.waseda.ac.jp>, freebsd-java@FreeBSD.ORG
Subject:   RE: Pre-alpha JDK 1.2.2 patches -- issues
Message-ID:  <59063B5B4D98D311BC0D0001FA7E4522013139F0@l04.research.kpn.com>

next in thread | raw e-mail | index | archive | help
> 
> > 12. Rounding bug.
> >     Kees Jan Koster has kindly taken the time to run the JDK through
> >     the Mauve test suite (http://sourceware.cygnus.com/mauve/).
> 
> >     "There seems to be a well-known rounding error in the 
> string conversions
> >      in type double. The Mauve test suite converts the 
> double -3.5 to a
> >      string and back and expects -4.0 to come out.
> 
> I think the test code is 
> gnu/testlet/java/lang/Math/rint.java. Isn't it?
> 
Yes.

>
> The rint.java checks comformance of the implementation
> of Math#rint(), the methods should return the closest
> *integer* to the argument.
>
> If the pre-alpha port returns -3.5 instead of -4.0, that
> is a porting bug, neither a FPU control word problem nor
> only compatibility problem with the Solaris version.
> 
All-right. We came to that conclusion. :-)

How would you suggest we fix this?

    Kees Jan

==============================================
 You are only young once,
      but you can stay immature all your life


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?59063B5B4D98D311BC0D0001FA7E4522013139F0>