[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns a value indicating whether the specified number evaluates to a value that is not a number (NaN).
public static bool IsNaN(
- Type: System.Double
A double-precision floating-point number.
Floating-point operations return NaN to signal that that result of the operation is undefined. For example, dividing 0.0 by 0.0 results in NaN.
The following example illustrates the use of IsNaN:
// This will return true.
if (Double.IsNaN(0 / zero))
outputBlock.Text += "Double.IsNan() can determine whether a value is not-a-number." + "\n";
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0