RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.IsNan Function

Indicates when a variable or expression does not evaluate to a numeric value.

Pascal
function IsNan(const AValue: Double): Boolean; overload;
function IsNan(const AValue: Single): Boolean; overload;
function IsNan(const AValue: Extended): Boolean; overload;
C++
Boolean IsNan(const Double AValue);
Boolean IsNan(const Single AValue);
Boolean IsNan(const Extended AValue);

Use IsNan to test whether the value specified by AValue represents NaN (not a number). Note that NaN is distinct from positive and negative infinity, which can be detected using the IsInfinite function. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!