BigRational.TryParse Method

Definition

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

Overload List

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

TryParse(ReadOnlySpan<Char>, IFormatProvider, BigRational)

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

Parameters

s  ReadOnlySpan<Char>
The characters to convert.
provider  IFormatProvider
An object that supplies culture-specific formatting information.
result  BigRational
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, IFormatProvider, BigRational)

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

Parameters

s  String
The string to convert.
provider  IFormatProvider
An object that supplies culture-specific formatting information.
result  BigRational
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, BigRational)

Tries to convert a span of characters to a BigRational using the specified style and format provider.
C#
public static bool TryParse(
	ReadOnlySpan<char> s,
	NumberStyles style,
	IFormatProvider? provider,
	out BigRational 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  BigRational
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, BigRational)

Tries to convert a string to a BigRational using the specified style and format provider.
C#
public static bool TryParse(
	string s,
	NumberStyles style,
	IFormatProvider? provider,
	out BigRational 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  BigRational
On success, receives the converted value.

Return Value

Boolean
true if the conversion succeeds; otherwise, false.

Implements

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

See Also