n = CDbl(expression)
|expression||(Variant) Any valid expression.|
The conversion functions can be used e.g. if you want some operation result to be expressed as a particular data type (rather than the default data type). For example, use CDbl or CSng to force Double or Single data type in cases where integer arithmetic normally would occur.
Use the CDbl function to provide internationally aware conversions from any other data type to a Double type. For example, different decimal separators and thousands separators are properly recognized depending on the locale setting of your system.