Originally posted by Gitesh Ramchandani:
This means that -0.0=0.0. But that is not true because
System.out.println(Math.min(-0.0,0.0)); gives -0.0
Why do you think that if System.out.println(Math.min(-0.0,0.0)); gives -0.0, the first statement (-0.0 == 0.0) is not true?
If System.out.println(Math.min(-0.0,0.0)); gives -0.0 it does not mean that -0.0 == 0.0 cannot be true.
[ September 04, 2007: Message edited by: Jesper Young ]