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

또 보기