## Decimal::CompareTo method


Determina si el valor representado por el objeto actual es menor, igual o mayor que el valor representado por el objeto especificado.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| d | const Decimal\& | El comparando |

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

## Ver también

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