Method Parse
| Improve this Doc View SourceParse(String, IFormatProvider)
Converts the string representation of a number to its decimal equivalent.
Declaration
public static BigDecimal Parse(string s, IFormatProvider provider)
Parameters
Type | Name | Description |
---|---|---|
String | s | The string representation of the number to convert. |
IFormatProvider | provider | A format provider that supplies culture-specific parsing information. |
Returns
Type | Description |
---|---|
BigDecimal |
Parse(String, NumberStyles, IFormatProvider)
Converts the string representation of a number to its decimal equivalent.
Declaration
public static BigDecimal Parse(string s, NumberStyles style = NumberStyles.Number, IFormatProvider provider = null)
Parameters
Type | Name | Description |
---|---|---|
String | s | The string representation of the number to convert. |
NumberStyles | style | A combination of NumberStyles values that indicate the styles that can be parsed. |
IFormatProvider | provider | A format provider that supplies culture-specific parsing information. |
Returns
Type | Description |
---|---|
BigDecimal |
Parse(ReadOnlySpan<Char>, IFormatProvider)
Converts the string representation of a number to its decimal equivalent.
Declaration
public static BigDecimal Parse(ReadOnlySpan<char> s, IFormatProvider provider)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<Char> | s | The string representation of the number to convert. |
IFormatProvider | provider | A format provider that supplies culture-specific parsing information. |
Returns
Type | Description |
---|---|
BigDecimal |
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)
Converts the string representation of a number to its decimal equivalent.
Declaration
public static BigDecimal Parse(ReadOnlySpan<char> s, NumberStyles style = NumberStyles.Number, IFormatProvider provider = null)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<Char> | s | The string representation of the number to convert. |
NumberStyles | style | A combination of NumberStyles values that indicate the styles that can be parsed. |
IFormatProvider | provider | A format provider that supplies culture-specific parsing information. |
Returns
Type | Description |
---|---|
BigDecimal |