System::Decimal::CompareTo メソッド

Decimal::CompareTo method

現在のオブジェクトが表す値が、指定されたオブジェクトが表す値より小さいか、等しいか、または大きいかを判定します。

int System::Decimal::CompareTo(const Decimal &d) const
パラメーター説明
dconst Decimal&比較対象

ReturnValue

-1 if the value represented by the current object is less than the value represented by d; 0 if the values are equal; 1 if the value represented by the current object is greater than the value represented by d

参照