System::Decimal::Parse method
Decimal::Parse(const String&) method
Converts the string representation of a decimal number into an equivalent instance of Decimal class.
static Decimal System::Decimal::Parse(const String &s)
Parameter | Type | Description |
---|---|---|
s | const String& | The string representation of a number |
ReturnValue
A new instance of Decimal class representing a value equivalent to that represented by the specified string.
See Also
- Class Decimal
- Class String
- Class Decimal
- Namespace System
- Library Aspose.Page for C++
Decimal::Parse(const String&, const SharedPtr<IFormatProvider>&) method
Converts the string representation of a decimal number into an equivalent instance of Decimal class using the specified format provider.
static Decimal System::Decimal::Parse(const String &s, const SharedPtr<IFormatProvider> &provider)
Parameter | Type | Description |
---|---|---|
s | const String& | The string representation of a decimal value to convert |
provider | const SharedPtr<IFormatProvider>& | Format provider |
ReturnValue
A new instance of Decimal class representing a value equivalent to that represented by the specified string
See Also
- Class Decimal
- Class String
- Typedef SharedPtr
- Class IFormatProvider
- Class Decimal
- Namespace System
- Library Aspose.Page for C++
Decimal::Parse(const String&, Globalization::NumberStyles) method
Converts the string representation of a decimal number into an equivalent instance of Decimal class using the specified style.
static Decimal System::Decimal::Parse(const String &s, Globalization::NumberStyles styles)
Parameter | Type | Description |
---|---|---|
s | const String& | The string representation of a decimal value to convert |
styles | Globalization::NumberStyles | A bitwise combination of the enumeration values that provides additional information about s, about style elements that may be present in s, or about the conversion from s to a Decimal object |
ReturnValue
A new instance of Decimal class representing a value equivalent to that represented by the specified string
See Also
- Class Decimal
- Class String
- Enum NumberStyles
- Class Decimal
- Namespace System
- Library Aspose.Page for C++
Decimal::Parse(const String&, Globalization::NumberStyles, const SharedPtr<IFormatProvider>&) method
Converts the string representation of a decimal number into an equivalent instance of Decimal class using the specified style and format provider.
static Decimal System::Decimal::Parse(const String &s, Globalization::NumberStyles styles, const SharedPtr<IFormatProvider> &provider)
Parameter | Type | Description |
---|---|---|
s | const String& | The string representation of a decimal value to convert |
styles | Globalization::NumberStyles | A bitwise combination of the enumeration values that provides additional information about s, about style elements that may be present in s, or about the conversion from s to a Decimal object |
provider | const SharedPtr<IFormatProvider>& | Format provider |
ReturnValue
A new instance of Decimal class representing a value equivalent to that represented by the specified string
See Also
- Class Decimal
- Class String
- Enum NumberStyles
- Typedef SharedPtr
- Class IFormatProvider
- Class Decimal
- Namespace System
- Library Aspose.Page for C++