Converts the string representation of a number in a specified style and culture-specific format
to its
BigInteger equivalent.
A return value indicates whether the conversion succeeded or failed.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static bool TryParse(
string s,
NumberStyles style,
IFormatProvider provider,
out BigInteger value
)
Public Shared Function TryParse (
s As String,
style As NumberStyles,
provider As IFormatProvider,
<OutAttribute> ByRef value As BigInteger
) As Boolean
public:
static bool TryParse(
String^ s,
NumberStyles style,
IFormatProvider^ provider,
[OutAttribute] BigInteger% value
)
static member TryParse :
s : string *
style : NumberStyles *
provider : IFormatProvider *
value : BigInteger byref -> bool
Parameters
- s
- Type: SystemString
A string containing a number to convert. - style
- Type: System.GlobalizationNumberStyles
A bitwise combination of NumberStyles values that indicates the permitted format
of s. - provider
- Type: SystemIFormatProvider
An IFormatProvider that supplies culture-specific formatting information about s. - value
- Type: Extreme.MathematicsBigInteger
When this method returns, contains the BigInteger equivalent
to the number contained in s, if the conversion succeeded, or zero if the conversion failed.
The conversion fails if the s parameter is , or is not of the correct format.,
This parameter is passed uninitialized.
Return Value
Type:
Boolean if s was converted successfully; otherwise,
.
Reference