Updated: March 2012
Represents a value that is not a number (NaN). This field is constant.
Assembly: mscorlib (in mscorlib.dll)
A method or operator returns when the result of an operation is undefined. For example, the result of dividing zero by zero is , as the following example shows.
In addition, a method call with a value or an operation on a value returns , as the following example shows.
Use the IsNaN method to determine whether a value is not a number. Two values are considered unequal to one another. Therefore, it is not possible to determine whether a value is not a number by using the quality operator to compare it to another value that is equal to . The comparison returns false, as the following example shows.
The following code example illustrates the use of :
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.