xGVQU‖

eByNV‖CDbl Function

EwDaU‖Converts any numerical expression or string expression to a double type.

jjGQH‖Syntax


aTHD8‖CDbl (Expression)

38G4w‖Return value

Double

LM9Ye‖Parameters:

uZbg2‖ Expression: Any string or numeric expression that you want to convert. To convert a string expression, the number must be entered as normal text ("123.5") using the default number format of your operating system.

SEjHR‖Error codes:

5 Invalid procedure call

HxfeM‖Example:


Sub ExampleCountryConvert
    MsgBox CDbl(1234.5678)
    MsgBox CInt(1234.5678)
    MsgBox CLng(1234.5678)
End Sub