Home Privacy Policy Feedback Link to us Site Map Forums

Excel: CDbl Function (VBA only)


In Excel, the CDbl function converts a value to a double.

The syntax for the CDbl function is:

CDbl( expression )


Applies To:

  • Excel 2007, Excel 2003, Excel XP, Excel 2000

VBA Code

The CDbl function can only be used in VBA code. For example:

Dim LDouble As Double

LDouble = CDbl(8.45 * 0.005 * 0.01)

The variable called LDouble would now contain the value of 0.0004225.