BigFloat.TryParse Method

Definition

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

Overload List

TryParse(String, BigFloat) Attempts to convert a string value to a BigFloat.
TryParse(String, AccuracyGoal, BigFloat) Attempts to convert a string value 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
On return, the converted value.

Return Value

Boolean
true if the conversion was successful; otherwise false.

Exceptions

ArgumentNullExceptionvalue is null.

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
On return, the converted value.

Return Value

Boolean
true if the conversion was successful; otherwise false.

Exceptions

ArgumentNullExceptionvalue 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
On return, the converted value.

Return Value

Boolean
true if the conversion was successful; otherwise false.

Exceptions

ArgumentNullExceptionvalue is null.

See Also