## Decimal::Compare method


Καθορίζει εάν η τιμή που αντιπροσωπεύεται από το πρώτο αντικείμενο [Decimal](../) είναι μικρότερη, ίση ή μεγαλύτερη από την τιμή που αντιπροσωπεύεται από το δεύτερο αντικείμενο [Decimal](../).

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


| Parameter | Type | Περιγραφή |
| --- | --- | --- |
| 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++](../../../)
