## IConvertible::ToDecimal method


Converte il valore di questa istanza in un numero [System::Decimal](../../decimal/) equivalente utilizzando le informazioni di formattazione specifiche della cultura specificata.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| provider | System::SharedPtr\<System::IFormatProvider\> | Una implementazione dell'interfaccia [System::IFormatProvider](../../iformatprovider/) che fornisce informazioni di formattazione specifiche della cultura. |

### ReturnValue

Un numero [System::Decimal](../../decimal/) equivalente al valore di questa istanza.

## Vedi anche

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