## Decimal::Compare method


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

```cpp
static int System::Decimal::Compare(const Decimal &d1, const Decimal &d2)
```


| 매개변수 | 형식 | 설명 |
| --- | --- | --- |
| d1 | const Decimal\& | 첫 번째 비교값 |
| d2 | const 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**

## 또 보기

* Class [Decimal](../)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
