qbasic.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDBL, CSNG Functions
  Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
CDBL converts a numeric expression to a double-precision value.
CSNG converts a numeric expression to a single-precision value.
 
CDBL(numeric-expression)
CSNG(numeric-expression)
 
    ■ numeric-expression    Any numeric expression.
 
Example:
    PRINT 1 / 3, CDBL(1 / 3)    'Output is:  .3333333  .3333333333333333
    PRINT CSNG(975.3421515#)    'Output is:  975.3422
 
See Also    CINT, CLNG