NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Double.IsNaN

Determines whether the specified Double is not a number (NaN).

[Visual Basic]
Public Shared Function IsNaN( _
   ByVal d As Double _
) As Boolean
[C#]
public static bool IsNaN(
   double d
);
[C++]
public: static bool IsNaN(
   double d
);
[JScript]
public static function IsNaN(
   d : double
) : Boolean;

Parameters

d
The Double to examine.

Return Value

true if the number equals not a number (NaN); otherwise. false.

Remarks

Note when using CompareTo or Equals, false will be returned if NaN is used. IsNaN should never be used for comparison.

(In addition see CultureInfo, NumberFormatInfo, PositiveInfinity, NegativeInfinity, and NaN.)

See Also

Double Structure | Double Members | System Namespace