bas7qck.hlp (Table of Contents; 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.
Numeric Constants - Definition
  Constants                                    Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
Numeric Constants - Definition
 
Single-Precision Constants
Single-precision numeric constants are stored with 7 digits of precision
(plus the exponent). Double-precision numbers are stored with 15 digits
of precision (plus the exponent).
 
A single-precision constant is any numeric constant that has one of the
following properties:
  ■ Exponential form denoted by E.
  ■ A trailing exclamation mark (!).
  ■ A value containing a decimal point that does not have a D in the
    exponent or a trailing number sign (#) and that has fewer than
    15 digits.
  ■ A value without a decimal point that has fewer than 15 digits
    but cannot be represented as a long-integer value.
 
Double-precision constants
A double-precision constant is any numeric constant that has one of the
following properties:
  ■ Exponential form denoted by D.
  ■ A trailing number sign (#).
  ■ A decimal point, no E in the exponent or trailing exclamation
    mark (!), and more than 15 digits.
 
Currency Constants
Currency constants are fixed-point numbers stored with 19 digits of
precision and have 4 digits to the right of the decimal point.
Currency constants have the following properties:
  ■ Fixed-point form with a maximum of 4 digits to the right of the
    decimal point, within the currency data type range, and a trailing
    at symbol (@).
  ■ Integer form (no decimal point) within the currency data type range,
    and a trailing at symbol (@).