CitectVBA Programming Reference > CitectVBA Function Reference > Conversion Functions > CDbl

CDbl

Converts expressions to a double data type.

Syntax

CDbl(Exp)

Exp:

A valid string, number or Variant containing a value recognizable as a string or a number.

Return Value

Returns the value of the expression Exp provided in the argument as a double data type.

Related Functions

CDate | CInt | CLng | CSng | CStr | CVar

Example

Dim x as integer
Dim z as double
z = CDbl(x)'Converts the integer value of x to a double value in z