SyntaxDim result As Double = CDbl(expression)
DescriptionThe CDbl function converts expression to the Double data type. Usage at a Glance
ExampleDim targetNumber As Double If IsNumeric(stringNumber) Then targetNumber = CDbl(stringNumber) End If See AlsoCSng Function, Val Function |