Method Parse
Parse(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 |
Implements
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 |
Implements
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 |
Implements
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 |