## Decimal::Compare method


Avgör om värdet som representeras av det första [Decimal](../)-objektet är mindre än, lika med eller större än värdet som representeras av det andra [Decimal](../)-objektet.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| d1 | const Decimal\& | Den första jämförelsetermen |
| d2 | const Decimal\& | Den andra jämförelsetermen |

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

## Se även

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