CDBL function

Purpose: CDBL returns the double precision value of a numeric expression.


 Syntax:

 RetVal# = CDBL(Numeric Expression)

 Parameters:

  • Numeric Expression Number or calculation.

 Return Value:

  • RetVal#, the return value, is a double floating point number.

Example:


 DIM RetVal#
 
 RetVal# = CDBL(6.6 / 2.6)
 
 PRINT RetVal#

Result:

RetVal# will equal 2.538461538461538