## Decimal::Compare method


Menentukan apakah nilai yang diwakili oleh objek [Decimal](../) pertama lebih kecil, sama dengan, atau lebih besar dari nilai yang diwakili oleh objek [Decimal](../) kedua.

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| d1 | const Decimal\& | Pembanding pertama |
| d2 | const Decimal\& | Pembanding kedua |

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

## Lihat Juga

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