Double..::..TryParse Method (String, Double%)
Converts the string representation of a number to its double-precision floating-point number equivalent. A return value indicates whether the conversion succeeded or failed.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static bool TryParse( string s, out double result )
<TemplateAttribute> _ Public Shared Function TryParse ( _ s As String, _ <OutAttribute> ByRef result As Double _ ) As Boolean
[TemplateAttribute] public: static bool^ TryParse( String^ s, [OutAttribute] double^% result )
Parameters
- s
- Type: System..::..String
A string containing a number to convert.
- result
- Type: System..::..Double%
When this method returns, contains the double-precision floating-point number equivalent of the s parameter, if the conversion succeeded, or zero if the conversion failed. The conversion fails if the s parameter is null or Empty, is not a number in a valid format, or represents a number less than MinValue or greater than MaxValue. This parameter is passed uninitialized; any value originally supplied in result will be overwritten.