CDbl function (LotusScript® Language)

Returns a value converted to the Double data type.

Syntax

CDbl ( expr )

Elements

expr

Any numeric expression, or a string expression that LotusScript® can convert to a number.

Return value

CDbl returns the numeric value of expr as a Double value.

CDbl(EMPTY) returns 0.

If expr is a string expression, CDbl returns the numeric representation of the string, including any fractional part. If LotusScript® cannot convert the string to a number, the function raises an error.

If the value of expr is too large to fit in the Double data type, the function raises an error.

Example