System.Math.IsNan

提供: RAD Studio API Documentation
移動先: 案内検索

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 関数を使って識別できます。

関連項目