0.0/0.0 is NaN and NaN is different from 0. Hence false.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!

Xiao Song
Greenhorn

Joined: Aug 29, 2006
Posts: 17

posted

0

Thanks a lot. In rt.jar NaN is defined as follows:

A constant holding the largest positive finite value of type double,It is equal to the hexadecimal floating-point literal 0x1.fffffffffffffP+1023 and also equal to Double.longBitsToDouble(0x7fefffffffffffffL)