Utility.DoubleTryParse Method

Converts the string representation of a number to its double-precision equivalent in a culture invariant way.
Public Shared Function DoubleTryParse( _ 
ByVal value As String, _ 
ByRef result As Double
) As Boolean
This language is not supported or no code example is available.
public static bool DoubleTryParse( 
string value
out double result 
)
This language is not supported or no code example is available.

Parameters

value
string

The string to read

result
double

The converted value, if the method succeeded, 0 otherwise

Return Value

bool

True if the conversion succeeded, false otherwise.

.NET Framework

Supported in: 4.8

In this article

Definition