## IConvertible::ToDecimal method


Converts the value of this instance to an equivalent [System::Decimal](../../decimal/) number using the specified culture-specific formatting information.

```cpp
virtual System::Decimal System::IConvertible::ToDecimal(System::SharedPtr<System::IFormatProvider> provider)=0
```


| Parameter | Type | Description |
| --- | --- | --- |
| provider | System::SharedPtr\<System::IFormatProvider\> | A [System::IFormatProvider](../../iformatprovider/) interface implementation that supplies culture-specific formatting information. |

### ReturnValue

A [System::Decimal](../../decimal/) number equivalent to the value of this instance.

## See Also

* Class [Decimal](../../decimal/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [IConvertible](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
