Mono Class Library: System.Single Overview | Members

System.Single.NaN Field

Represents an undefined result of operations involving float .

Value: NaN

public const float NaN

Remarks

Not-a-Number (NaN) values are returned when the result of a float operation is undefined.

A NaN value is not equal to any other value, including another NaN value.

The value of this field is obtained by dividing float zero by zero.

Note: float.NaN represents one of many possible NaN values. To test whether a float value is a NaN, use the float.IsNaN(float) method.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0