DoubleParse Method (String, NumberStyles) |
Converts the string representation of a number in a specified style to its double-precision floating-point number equivalent.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static double Parse(
string s,
NumberStyles style
)
Parameters
- s
- Type: SystemString
A string that contains a number to convert. - style
- Type: System.GlobalizationNumberStyles
A bitwise combination of enumeration values that indicate the style elements that can be present in s. A typical value to specify is a combination of Float combined with AllowThousands.
Return Value
Type:
DoubleA double-precision floating-point number that is equivalent to the numeric value or symbol specified in
s.
Exceptions See Also