Big Float.Parse Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Parse( | Converts a string value to a BigFloat. |
Parse( | Parses a span of characters into a value. |
Parse( | Converts a string value to a BigFloat. |
Parse( | Converts a string value to a BigFloat. |
Parse( | Converts a string value to a BigFloat. |
Parse( | Parses a span of characters into a value. |
Parse( | Converts a string value to a BigFloat. |
Parse( | Converts a string value to a BigFloat. |
Parse( | Converts a string value to a BigFloat. |
Parse( | Converts a string value to a BigFloat. |
Parse(String)
Converts a string value to a BigFloat.
public static BigFloat Parse(
string value
)
Parameters
- value String
- The string to convert.
Return Value
BigFloatThe BigFloat value represented by value.
Exceptions
Format | value does not contain a valid floating-point value. |
Argument | value is null. |
Parse(ReadOnlySpan<Char>, IFormatProvider)
Parses a span of characters into a value.
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
BigFloatThe result of parsing s.
Implements
ISpanParsable<TSelf>.Parse(ReadOnlySpan<Char>, IFormatProvider)Exceptions
Format | s is not in the correct format. |
Overflow | s is not representable by TSelf. |
Parse(String, AccuracyGoal)
Converts a string value to a BigFloat.
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
BigFloatThe BigFloat value represented by value.
Exceptions
Format | value does not contain a valid floating-point value. |
Argument | value is null. |
Parse(String, NumberStyles)
Converts a string value to a BigFloat.
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
BigFloatThe BigFloat value represented by value.
Exceptions
Format | value does not contain a valid floating-point value. |
Argument | value is null. |
Parse(String, IFormatProvider)
Converts a string value to a BigFloat.
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
BigFloatThe BigFloat value represented by value.
Implements
IParsable<TSelf>.Parse(String, IFormatProvider)Exceptions
Format | value does not contain a valid floating-point value. |
Argument | value is null. |
Parse(ReadOnlySpan<Char>, NumberStyles, IFormatProvider)
Parses a span of characters into a value.
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
BigFloatThe result of parsing s.
Implements
INumberBase<TSelf>.Parse(ReadOnlySpan<Byte>, NumberStyles, IFormatProvider)Exceptions
Argument | style is not a supported NumberStyles value. |
Format | s is not in the correct format. |
Overflow | s is not representable by TSelf. |
Parse(String, AccuracyGoal, NumberStyles)
Converts a string value to a BigFloat.
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
BigFloatThe BigFloat value represented by value.
Exceptions
Format | value does not contain a valid floating-point value. |
Argument | value is null. |
Parse(String, AccuracyGoal, IFormatProvider)
Converts a string value to a BigFloat.
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
BigFloatThe BigFloat value represented by value.
Exceptions
Format | value does not contain a valid floating-point value. |
Argument | value is null. |
Parse(String, NumberStyles, IFormatProvider)
Converts a string value to a BigFloat.
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
BigFloatThe BigFloat value represented by value.
Implements
INumberBase<TSelf>.Parse(String, NumberStyles, IFormatProvider)Exceptions
Format | value does not contain a valid floating-point value. |
Argument | value is null. |
Parse(String, AccuracyGoal, NumberStyles, IFormatProvider)
Converts a string value to a BigFloat.
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
BigFloatThe BigFloat value represented by value.
Exceptions
Format | value does not contain a valid floating-point value. |
Argument | value is null. |