Decimal.IsInteger(Decimal) メソッド

定義

値が整数を表すかどうかを判断します。

public:
 static bool IsInteger(System::Decimal value) = System::Numerics::INumberBase<System::Decimal>::IsInteger;
public static bool IsInteger(decimal value);
static member IsInteger : decimal -> bool
Public Shared Function IsInteger (value As Decimal) As Boolean

パラメーター

value
Decimal

チェックする値。

返品

true valueが整数の場合は。それ以外の場合はfalse

実装

注釈

このメソッドは浮動小数点値を正しく処理するため、 2.03.0true を返しますが、 2.23.3falseを返します。

適用対象