BigFloat.Parse Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

Parse(String) Converts a string value to a BigFloat.
Parse(ReadOnlySpan<Char>, IFormatProvider)Parses a span of characters into a value.
Parse(String, AccuracyGoal) Converts a string value to a BigFloat.
Parse(String, NumberStyles) Converts a string value to a BigFloat.
Parse(String, IFormatProvider) Converts a string value to a BigFloat.
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)Parses a span of characters into a value.
Parse(String, AccuracyGoal, NumberStyles) Converts a string value to a BigFloat.
Parse(String, AccuracyGoal, IFormatProvider) Converts a string value to a BigFloat.
Parse(String, NumberStyles, IFormatProvider) Converts a string value to a BigFloat.
Parse(String, AccuracyGoal, NumberStyles, IFormatProvider) Converts a string value to a BigFloat.

Parse(String)

Converts a string value to a BigFloat.
C#
public static BigFloat Parse(
	string value
)

Parameters

value  String
The string to convert.

Return Value

BigFloat
The BigFloat value represented by value.

Exceptions

FormatException

value does not contain a valid floating-point value.

ArgumentNullException

value is null.

Parse(ReadOnlySpan<Char>, IFormatProvider)

Parses a span of characters into a value.
C#
public static BigFloat Parse(
	ReadOnlySpan<char> s,
	IFormatProvider? provider
)

Parameters

s  ReadOnlySpan<Char>
The span of characters to parse.
provider  IFormatProvider
An object that provides culture-specific formatting information about s.

Return Value

BigFloat
The result of parsing s.

Implements

ISpanParsable<TSelf>.Parse(ReadOnlySpan<Char>, IFormatProvider)

Exceptions

FormatExceptions is not in the correct format.
OverflowExceptions is not representable by TSelf.

Parse(String, AccuracyGoal)

Converts a string value to a BigFloat.
C#
public static BigFloat Parse(
	string value,
	AccuracyGoal accuracyGoal
)

Parameters

value  String
The string to convert.
accuracyGoal  AccuracyGoal
The AccuracyGoal for the parsed value.

Return Value

BigFloat
The BigFloat value represented by value.

Exceptions

FormatException

value does not contain a valid floating-point value.

ArgumentNullException

value is null.

Parse(String, NumberStyles)

Converts a string value to a BigFloat.
C#
public static BigFloat Parse(
	string value,
	NumberStyles style
)

Parameters

value  String
The string to convert.
style  NumberStyles
A NumberStyles value that specifies the allowed formats of the string.

Return Value

BigFloat
The BigFloat value represented by value.

Exceptions

FormatException

value does not contain a valid floating-point value.

ArgumentNullException

value is null.

Parse(String, IFormatProvider)

Converts a string value to a BigFloat.
C#
public static BigFloat Parse(
	string value,
	IFormatProvider? provider
)

Parameters

value  String
The string to convert.
provider  IFormatProvider
An IFormatProvider that specifies how the string should be interpreted.

Return Value

BigFloat
The BigFloat value represented by value.

Implements

IParsable<TSelf>.Parse(String, IFormatProvider)

Exceptions

FormatException

value does not contain a valid floating-point value.

ArgumentNullException

value is null.

Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)

Parses a span of characters into a value.
C#
public static BigFloat Parse(
	ReadOnlySpan<char> s,
	NumberStyles style,
	IFormatProvider? provider
)

Parameters

s  ReadOnlySpan<Char>
The span of characters to parse.
style  NumberStyles
A bitwise combination of number styles that can be present in s.
provider  IFormatProvider
An object that provides culture-specific formatting information about s.

Return Value

BigFloat
The result of parsing s.

Implements

INumberBase<TSelf>.Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)

Exceptions

ArgumentExceptionstyle is not a supported NumberStyles value.
FormatExceptions is not in the correct format.
OverflowExceptions is not representable by TSelf.

Parse(String, AccuracyGoal, NumberStyles)

Converts a string value to a BigFloat.
C#
public static BigFloat Parse(
	string value,
	AccuracyGoal accuracyGoal,
	NumberStyles style
)

Parameters

value  String
The string to convert.
accuracyGoal  AccuracyGoal
The AccuracyGoal for the parsed value.
style  NumberStyles
A NumberStyles value that specifies the allowed formats of the string.

Return Value

BigFloat
The BigFloat value represented by value.

Exceptions

FormatException

value does not contain a valid floating-point value.

ArgumentNullException

value is null.

Parse(String, AccuracyGoal, IFormatProvider)

Converts a string value to a BigFloat.
C#
public static BigFloat Parse(
	string value,
	AccuracyGoal accuracyGoal,
	IFormatProvider? provider
)

Parameters

value  String
The string to convert.
accuracyGoal  AccuracyGoal
The AccuracyGoal for the parsed value.
provider  IFormatProvider
An IFormatProvider that specifies how the string should be interpreted.

Return Value

BigFloat
The BigFloat value represented by value.

Exceptions

FormatException

value does not contain a valid floating-point value.

ArgumentNullException

value is null.

Parse(String, NumberStyles, IFormatProvider)

Converts a string value to a BigFloat.
C#
public static BigFloat Parse(
	string value,
	NumberStyles style,
	IFormatProvider? provider
)

Parameters

value  String
The string to convert.
style  NumberStyles
A NumberStyles value that specifies the allowed formats of the string.
provider  IFormatProvider
An IFormatProvider that specifies how the string should be interpreted.

Return Value

BigFloat
The BigFloat value represented by value.

Implements

INumberBase<TSelf>.Parse(String, NumberStyles, IFormatProvider)

Exceptions

FormatException

value does not contain a valid floating-point value.

ArgumentNullException

value is null.

Parse(String, AccuracyGoal, NumberStyles, IFormatProvider)

Converts a string value to a BigFloat.
C#
public static BigFloat Parse(
	string value,
	AccuracyGoal accuracyGoal,
	NumberStyles style,
	IFormatProvider? provider
)

Parameters

value  String
The string to convert.
accuracyGoal  AccuracyGoal
The AccuracyGoal for the parsed value.
style  NumberStyles
A NumberStyles value that specifies the allowed formats of the string.
provider  IFormatProvider
An IFormatProvider that specifies how the string should be interpreted.

Return Value

BigFloat
The BigFloat value represented by value.

Exceptions

FormatException

value does not contain a valid floating-point value.

ArgumentNullException

value is null.

See Also