ToString()

Decimal::ToString() const method

Returns the string representation of the value represented by the object.

String System::Decimal::ToString() const

Decimal::ToString(const SharedPtr<IFormatProvider>&) const method

Converts current object to string using the culture-specific format information.

String System::Decimal::ToString(const SharedPtr<IFormatProvider> &provider) const

Arguments

ParameterTypeDescription
providerconst SharedPtr<IFormatProvider>&The IFormatProvider object providing the culture-specific format information.

Return Value

The string representation of the current object.

Decimal::ToString(const SharedPtr<Globalization::CultureInfo>&) const method

String System::Decimal::ToString(const SharedPtr<Globalization::CultureInfo> &culture) const

Decimal::ToString(const SharedPtr<Globalization::NumberFormatInfo>&) const method

String System::Decimal::ToString(const SharedPtr<Globalization::NumberFormatInfo> &nfi) const

Decimal::ToString(const Decimal&, std::nullptr_t) const method

String System::Decimal::ToString(const Decimal &value, std::nullptr_t) const

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 object.

String System::Decimal::ToString(const String &format, const SharedPtr<IFormatProvider> &provider) const

Arguments

ParameterTypeDescription
formatconst String&The string format.
providerconst SharedPtr<IFormatProvider>&The IFormatProvider object providing the culture-specific format information.

Return Value

The string representation of the current object.

Decimal::ToString(const String&, const SharedPtr<Globalization::CultureInfo>&) const method

String System::Decimal::ToString(const String &format, const SharedPtr<Globalization::CultureInfo> &culture) const

Decimal::ToString(const String&, const SharedPtr<Globalization::NumberFormatInfo>&) const method

String System::Decimal::ToString(const String &format, const SharedPtr<Globalization::NumberFormatInfo> &nfi) const

Decimal::ToString(const String&, std::nullptr_t) const method

String System::Decimal::ToString(const String &format, std::nullptr_t=nullptr) const

See Also