March 2003
Intermediate to advanced
512 pages
14h 30m
English
CDbl Function
CDbl(expression)expressionUse: Required
Data Type: Numeric or String
-1.79769313486232E308 to -4.94065645841247E-324 for negative values; 4.94065645841247E-324 to 1.79769313486232E308 for positive values.
expression cast as a Double
type.
Converts expression to a Double
type.
If the value of expression is
outside the range of the double data type, an overflow error is
generated.
Expression must evaluate to a numeric value; otherwise, a type mismatch error is generated.
Dim dblMyNumber as Double
If IsNumeric(sMyNumber) then
dblMyNumber = CDbl(sMyNumber)
End IfUse IsNumeric to test whether
expression evaluates to a number.
Read now
Unlock full access