public static double min(double a, double b) this method considers negative zero to be strictly smaller than positive zero. If one argument is positive zero and the other is negative zero, the result is negative zero.
Why there is -ve zero for double but not for integer Thanks in advance Megan [ August 15, 2002: Message edited by: Megan Adal ]
The representation of doubles (and floats) is: sign bit, exponent, mantissa. Negative zero differs from positive zero only in the sign bit. The representation of integers is "two's-complement", which has only one zero.