System::Decimal::Compare メソッド

Decimal::Compare method

最初の Decimal オブジェクトが表す値が、2 番目の Decimal オブジェクトが表す値より小さいか、等しいか、または大きいかを判定します。

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
パラメーター説明
d1const Decimal&最初の比較対象
d2const Decimal&2 番目の比較対象

ReturnValue

-1 if the value represented by d1 is less than the value represented by d2; 0 if the values are equal; 1 if the value represented by d1 is greater than the value represented by d2

参照