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

另见