NaN is used to represent an undefined result. In
Java, operations like division by 0 of a float or double (integer division by 0 results in an ArithmeticException), or trying to get the square root of a negative number.
Positive and Negative infinity are separate constants (Float.POSITIVE_INFINITY, Float.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY)
Junilu