Difference between revisions of "CDBL"
Jump to navigation
Jump to search
imported>Clippy |
imported>Clippy |
||
Line 12: | Line 12: | ||
:: PRINT A; CDBL(A) | :: PRINT A; CDBL(A) | ||
− | : 454.67 454.6700134277344 | + | :: 454.67 454.6700134277344 |
− | |||
− | The last 11 numbers in the double-precision number have no meaning in this example, since A was previously defined to only two-decimal place accuracy. | + | :Prints a double-precision version of the single-precision value stored in the variable named A. |
+ | |||
+ | :The last 11 numbers in the double-precision number have no meaning in this example, since A was previously defined to only two-decimal place accuracy. | ||
Note | Note | ||
− | See the CINT and CSNG functions for converting numbers to integer and single precision, respectively. | + | ''See also:'' the [[CINT]] and [[CSNG]] functions for converting numbers to integer and single precision, respectively. |
Revision as of 04:13, 7 September 2009
Purpose: To convert x to a double-precision number.
Syntax: CDBL(x)
Comments: x must be a numeric expression.
Example:
- A=454.67
- PRINT A; CDBL(A)
- 454.67 454.6700134277344
- Prints a double-precision version of the single-precision value stored in the variable named A.
- The last 11 numbers in the double-precision number have no meaning in this example, since A was previously defined to only two-decimal place accuracy.
Note
See also: the CINT and CSNG functions for converting numbers to integer and single precision, respectively.