|
RationalParse Method (String, NumberStyles, IFormatProvider)
|
Converts the string representation of a number to its
Rational representation.
Namespace:
Accord.Math
Assembly:
Accord (in Accord.dll) Version: 3.8.0
Syntax public static Rational Parse(
string s,
NumberStyles style,
IFormatProvider provider
)
Public Shared Function Parse (
s As String,
style As NumberStyles,
provider As IFormatProvider
) As Rational
Request Example
View SourceParameters
- s
- Type: SystemString
A string that represents a number. - style
- Type: System.GlobalizationNumberStyles
Indicates the styles that can be present when parsing a number. - provider
- Type: SystemIFormatProvider
An object that supplies culture-specific information about the format of s.
Return Value
Type:
RationalThe parsed
Rational value.
See Also