BigFloat.TryParse Method

Definition

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

Overload List

TryParse(String, BigFloat) Attempts to convert a string value to a BigFloat.
TryParse(ReadOnlySpan<Char>, IFormatProvider, BigFloat)Tries to convert a span of characters to a BigFloat using the specified format provider.
TryParse(String, AccuracyGoal, BigFloat) Attempts to convert a string value to a BigFloat.
TryParse(String, IFormatProvider, BigFloat)Tries to convert a string to a BigFloat using the specified format provider.
TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, BigFloat)Tries to convert a span of characters to a BigFloat using the specified style and format provider.
TryParse(String, NumberStyles, IFormatProvider, BigFloat)Tries to convert a string to a BigFloat using the specified style and format provider.
TryParse(ReadOnlySpan<Char>, AccuracyGoal, NumberStyles, IFormatProvider, BigFloat) Attempts to convert a span of characters to a BigFloat.
TryParse(String, AccuracyGoal, NumberStyles, IFormatProvider, BigFloat) Attempts to convert a string value to a BigFloat.

TryParse(String, BigFloat)

Attempts to convert a string value to a BigFloat.
C#
public static bool TryParse(
	string s,
	out BigFloat value
)

Parameters

s  String
The string to convert.
value  BigFloat
When this method returns, the converted value.

Return Value

Boolean
true if the conversion was successful; otherwise false.

Exceptions

ArgumentNullException

value is null.

TryParse(ReadOnlySpan<Char>, IFormatProvider, BigFloat)

Tries to convert a span of characters to a BigFloat using the specified format provider.
C#
public static bool TryParse(
	ReadOnlySpan<char> s,
	IFormatProvider? provider,
	out BigFloat result
)

Parameters

s  ReadOnlySpan<Char>
The characters to convert.
provider  IFormatProvider
An object that supplies culture-specific formatting information.
result  BigFloat
On success, receives the converted value.

Return Value

Boolean
true if the conversion succeeds; otherwise, false.

Implements

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

TryParse(String, AccuracyGoal, BigFloat)

Attempts to convert a string value to a BigFloat.
C#
public static bool TryParse(
	string s,
	AccuracyGoal accuracyGoal,
	out BigFloat value
)

Parameters

s  String
The string to convert.
accuracyGoal  AccuracyGoal
The AccuracyGoal for the parsed value.
value  BigFloat
When this method returns, the converted value.

Return Value

Boolean
true if the conversion was successful; otherwise false.

Exceptions

ArgumentNullException

value is null.

TryParse(String, IFormatProvider, BigFloat)

Tries to convert a string to a BigFloat using the specified format provider.
C#
public static bool TryParse(
	string s,
	IFormatProvider? provider,
	out BigFloat result
)

Parameters

s  String
The string to convert.
provider  IFormatProvider
An object that supplies culture-specific formatting information.
result  BigFloat
On success, receives the converted value.

Return Value

Boolean
true if the conversion succeeds; otherwise, false.

Implements

IParsable<TSelf>.TryParse(String, IFormatProvider, TSelf)

TryParse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider, BigFloat)

Tries to convert a span of characters to a BigFloat using the specified style and format provider.
C#
public static bool TryParse(
	ReadOnlySpan<char> s,
	NumberStyles style,
	IFormatProvider? provider,
	out BigFloat result
)

Parameters

s  ReadOnlySpan<Char>
The characters to convert.
style  NumberStyles
The permitted number styles.
provider  IFormatProvider
An object that supplies culture-specific formatting information.
result  BigFloat
On success, receives the converted value.

Return Value

Boolean
true if the conversion succeeds; otherwise, false.

Implements

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

TryParse(String, NumberStyles, IFormatProvider, BigFloat)

Tries to convert a string to a BigFloat using the specified style and format provider.
C#
public static bool TryParse(
	string s,
	NumberStyles style,
	IFormatProvider? provider,
	out BigFloat result
)

Parameters

s  String
The string to convert.
style  NumberStyles
The permitted number styles.
provider  IFormatProvider
An object that supplies culture-specific formatting information.
result  BigFloat
On success, receives the converted value.

Return Value

Boolean
true if the conversion succeeds; otherwise, false.

Implements

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

TryParse(ReadOnlySpan<Char>, AccuracyGoal, NumberStyles, IFormatProvider, BigFloat)

Attempts to convert a span of characters to a BigFloat.
C#
public static bool TryParse(
	ReadOnlySpan<char> s,
	AccuracyGoal accuracyGoal,
	NumberStyles style,
	IFormatProvider? provider,
	out BigFloat value
)

Parameters

s  ReadOnlySpan<Char>
The span of characters 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.
value  BigFloat
When this method returns, the converted value.

Return Value

Boolean
true if the conversion was successful; otherwise false.

Exceptions

ArgumentNullException

value is null.

TryParse(String, AccuracyGoal, NumberStyles, IFormatProvider, BigFloat)

Attempts to convert a string value to a BigFloat.
C#
public static bool TryParse(
	string s,
	AccuracyGoal accuracyGoal,
	NumberStyles style,
	IFormatProvider? provider,
	out BigFloat value
)

Parameters

s  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.
value  BigFloat
When this method returns, the converted value.

Return Value

Boolean
true if the conversion was successful; otherwise false.

Exceptions

ArgumentNullException

value is null.

See Also