ToDecimal()
XmlConvert::ToDecimal(const String&) method
Converts the String to a Decimal equivalent.
static Decimal System::Xml::XmlConvert::ToDecimal(const String &s)
Arguments
| Parameter | Type | Description |
|---|---|---|
| s | const String& | The string to convert. |
Return Value
A Decimal equivalent of the string.
Exceptions
| Exception | Description |
|---|---|
| ArgumentNullException | s is nullptr. |
| FormatException | s is not in the correct format. |
| OverflowException | s represents a number less than Decimal::MinValue or greater than Decimal::MaxValue. |
See Also
- Class Decimal
- Class String
- Class XmlConvert
- Namespace System::Xml
- Library Aspose.Slides