CDbl

This function converts an expression to a Variant of subtype Double.

Syntax

CDbl(expression)

Parameters

expression
Any valid expression.

Return Values

Returns a Variant of subtype Double.

Remarks

Use CDbl to force double-precision or single-precision arithmetic in cases where currency or integer arithmetic typically would occur.