## Decimal::CompareTo method


Détermine si la valeur représentée par l'objet actuel est inférieure, égale ou supérieure à la valeur représentée par l'objet spécifié.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| d | const Decimal\& | Le comparand |

### 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**

## Voir aussi

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