System::Decimal::Compare 메서드

Decimal::Compare method

첫 번째 Decimal 객체가 나타내는 값이 두 번째 Decimal 객체가 나타내는 값보다 작거나, 같거나, 큰지를 판단합니다.

static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
매개변수형식설명
d1const Decimal&첫 번째 비교값
d2const Decimal&두 번째 비교값

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

또 보기