Double..::..Parse Method (String)
Converts the string representation of a number to its double-precision floating-point number equivalent.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static double Parse( string s )
<TemplateAttribute> _ Public Shared Function Parse ( _ s As String _ ) As Double
[TemplateAttribute] public: static double^ Parse( String^ s )
Parameters
- s
- Type: System..::..String
A string that contains a number to convert.
Return Value
A double-precision floating-point number that is equivalent to the numeric value or symbol specified in s.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | s is null. |
System..::..FormatException | s does not represent a number in a valid format. |
System..::..OverflowException | s represents a number that is less than MinValue or greater than MaxValue. |