Big Integer.Parse Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Parse( | Converts the string representation of a number to its BigInteger equivalent. |
Parse( | Converts the string representation of a number in a specified style to its BigInteger equivalent. |
Parse( | Converts the string representation of a number in a specified culture-specific format to its BigInteger equivalent. |
Parse( | Converts the string representation of a number in a specified style and culture-specific format to its BigInteger equivalent. |
Parse(String)
Converts the string representation of a number to its BigInteger equivalent.
public static BigInteger Parse(
string s
)
Parameters
- s String
- A string containing a number to convert.
Return Value
BigIntegerA BigInteger equivalent to the numeric s or symbol specified in s.
Exceptions
Argument | s is null. |
Format | s is not a number in a valid format. |
Parse(String, NumberStyles)
Converts the string representation of a number in a specified style to its BigInteger equivalent.
public static BigInteger Parse(
string s,
NumberStyles style
)
Parameters
- s String
- A string containing a number to convert.
- style NumberStyles
- A bitwise combination of NumberStyles values that indicates the permitted format of s.
Return Value
BigIntegerA BigInteger equivalent to the numeric s or symbol specified in s.
Exceptions
Argument | s is null. |
Format | s is not a number in a valid format. |
Parse(String, IFormatProvider)
Converts the string representation of a number in a specified culture-specific format to its BigInteger equivalent.
public static BigInteger Parse(
string s,
IFormatProvider provider
)
Parameters
- s String
- A string containing a number to convert.
- provider IFormatProvider
- An IFormatProvider that supplies culture-specific formatting information about s.
Return Value
BigIntegerA BigInteger equivalent to the numeric s or symbol specified in s.
Exceptions
Argument | s is null. |
Format | s is not a number in a valid format. |
Parse(String, NumberStyles, IFormatProvider)
Converts the string representation of a number in a specified style and culture-specific format to its BigInteger equivalent.
public static BigInteger Parse(
string s,
NumberStyles style,
IFormatProvider provider
)
Parameters
- s String
- A string containing a number to convert.
- style NumberStyles
- A bitwise combination of NumberStyles values that indicates the permitted format of s.
- provider IFormatProvider
- An IFormatProvider that supplies culture-specific formatting information about s.
Return Value
BigIntegerA BigInteger equivalent to the numeric s or symbol specified in s.
Exceptions
Argument | s is null. |
Format | s is not a number in a valid format. |