contents.gifindex.gifprev1.gifnext1.gif

CDbl

Purpose

Explicitly converts an expression from one data type to the double data type.

Arguments

CDbl( expression )

Notes

This function explicitly controls the data type of a numeric expression. This function forces double-precision arithmetic in cases where currency or integer arithmetic normally would occur.

Example

CDbl converts a Currency value to a Double.

X = CDbl( CurrVal )