BigInteger.Parse Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Parse(String) Converts the string representation of a number to its BigInteger equivalent.
Parse(String, NumberStyles) Converts the string representation of a number in a specified style to its BigInteger equivalent.
Parse(String, IFormatProvider) Converts the string representation of a number in a specified culture-specific format to its BigInteger equivalent.
Parse(String, NumberStyles, IFormatProvider) 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.
C#
public static BigInteger Parse(
	string s
)

Parameters

s  String
A string containing a number to convert.

Return Value

BigInteger
A BigInteger equivalent to the numeric s or symbol specified in s.

Exceptions

ArgumentNullExceptions is null.
FormatExceptions 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.
C#
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

BigInteger
A BigInteger equivalent to the numeric s or symbol specified in s.

Exceptions

ArgumentNullExceptions is null.
FormatExceptions 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.
C#
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

BigInteger
A BigInteger equivalent to the numeric s or symbol specified in s.

Exceptions

ArgumentNullExceptions is null.
FormatExceptions 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.
C#
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

BigInteger
A BigInteger equivalent to the numeric s or symbol specified in s.

Exceptions

ArgumentNullExceptions is null.
FormatExceptions is not a number in a valid format.

See Also