## Decimal::Compare method


Determina si el valor representado por el primer objeto [Decimal](../) es menor que, igual a o mayor que el valor representado por el segundo objeto [Decimal](../).

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| d1 | const Decimal\& | El primer comparando |
| d2 | const Decimal\& | El segundo comparando |

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

## Ver también

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