classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Math patch


From: Jeroen Frijters
Subject: Math patch
Date: Thu, 27 Feb 2003 12:05:28 +0100

Hi,

Attached is a small patch to java.lang.Math to make round(float) and
round(double) do the right thing for NaN.

Style wise, is it a good idea to use "a != a" to test for NaN, or should
Double.isNaN() be used?

Regards,
Jeroen

Attachment: math.patch
Description: math.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]