## Decimal::CompareTo method


Определяет, меньше ли, равно ли или больше значение, представленное текущим объектом, чем значение, представленное указанным объектом.

```cpp
int System::Decimal::CompareTo(const Decimal &d) const
```


| Параметр | Тип | Описание |
| --- | --- | --- |
| d | const 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**

## См. также

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