System.Math.IsNan
Delphi
function IsNan(const AValue: Single): Boolean;
function IsNan(const AValue: Double): Boolean;
function IsNan(const AValue: Extended): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall IsNan(const float AValue)/* overload */;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Math.pas System.Math.hpp |
System.Math | System.Math |
説明
変数または式が数値でないと評価されるかどうかを示します。
IsNan を使用すると、AValue で指定された値が NaN(数値でないもの)を表すかどうかを検査できます。NaN は正または負の無限大とは異なることに注意してください。無限大については、IsInfinite 関数を使って識別できます。