Pourquoi float.NaN != double.NaN
?
tandis que float.PositiveInfinity == double.PositiveInfinity
et float.NegativeInfinity == double.NegativeInfinity
sont égaux .
EXEMPLE:
bool PosInfinity = (float.PositiveInfinity == double.PositiveInfinity); //true
bool NegInfinity = (float.NegativeInfinity == double.NegativeInfinity); //true
bool isNanEqual = (float.NaN == double.NaN); //false, WHY?