CDbl - Built-in Conversion Function¶
See Also¶
Purpose¶
CDbl returns an expression converted to a double.
Syntax¶
CDbl(exp)
Arguments¶
| Argument | Required | Description |
|---|---|---|
exp |
Yes | Any valid expression. |
Returns¶
Number (double precision = 64 bits)
Example¶
Let nTest = CCur(234.456784) // value of nTest is 234.4568
Let nCurr = (nTest * 8.2 * 0.01) // value of nCurr is 19.22545760
Return CDbl(nCurr) // returns 19.2254576
Notes¶
- The function uses the locale settings to convert
expto a double. - When
expcannot be converted to a double, a runtime error is generated. - The range is: ±2.23×10-308 to ±1.80×10308.
- Precision is approximately 16 decimal digits.