## Decimal::ToString() const method


Returns the string representation of the value represented by the object.

```cpp
String System::Decimal::ToString() const
```

## See Also

* Class [String](../../string/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Decimal::ToString(const Decimal\&, std::nullptr_t) const method




```cpp
String System::Decimal::ToString(const Decimal &value, std::nullptr_t) const
```

## See Also

* Class [String](../../string/)
* Class [Decimal](../)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Decimal::ToString(const SharedPtr\<Globalization::CultureInfo\>\&) const method




```cpp
String System::Decimal::ToString(const SharedPtr<Globalization::CultureInfo> &culture) const
```

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Decimal::ToString(const SharedPtr\<Globalization::NumberFormatInfo\>\&) const method




```cpp
String System::Decimal::ToString(const SharedPtr<Globalization::NumberFormatInfo> &nfi) const
```

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [NumberFormatInfo](../../../system.globalization/numberformatinfo/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Decimal::ToString(const SharedPtr\<IFormatProvider\>\&) const method


Converts current object to string using the culture-specific format information.

```cpp
String System::Decimal::ToString(const SharedPtr<IFormatProvider> &provider) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| provider | const SharedPtr\<IFormatProvider\>\& | The [IFormatProvider](../../iformatprovider/) object providing the culture-specific format information. |

### ReturnValue

The string representation of the current object.

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Decimal::ToString(const String\&, const SharedPtr\<Globalization::CultureInfo\>\&) const method




```cpp
String System::Decimal::ToString(const String &format, const SharedPtr<Globalization::CultureInfo> &culture) const
```

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [CultureInfo](../../../system.globalization/cultureinfo/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Decimal::ToString(const String\&, const SharedPtr\<Globalization::NumberFormatInfo\>\&) const method




```cpp
String System::Decimal::ToString(const String &format, const SharedPtr<Globalization::NumberFormatInfo> &nfi) const
```

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [NumberFormatInfo](../../../system.globalization/numberformatinfo/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Decimal::ToString(const String\&, const SharedPtr\<IFormatProvider\>\&) const method


Converts current object to its string representation using the specified string format and culture-specific format information provided by the specified [IFormatProvider](../../iformatprovider/) object.

```cpp
String System::Decimal::ToString(const String &format, const SharedPtr<IFormatProvider> &provider) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| format | const String\& | The string format. |
| provider | const SharedPtr\<IFormatProvider\>\& | The [IFormatProvider](../../iformatprovider/) object providing the culture-specific format information. |

### ReturnValue

The string representation of the current object.

## See Also

* Class [String](../../string/)
* Typedef [SharedPtr](../../sharedptr/)
* Class [IFormatProvider](../../iformatprovider/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## Decimal::ToString(const String\&, std::nullptr_t) const method




```cpp
String System::Decimal::ToString(const String &format, std::nullptr_t=nullptr) const
```

## See Also

* Class [String](../../string/)
* Class [Decimal](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
