User`s manual
4-21
.6666666865348816
READY
>_
2/3 is converted to a single precision constant; therefore only the first seven
digits of A# are accurate.
----------------------------------
10
A#=2/3#
20
PRINT A#
RUN
.66666666666666667
READY
>_
Since the expression 2/3# is evaluated as a double precision constant, all 16
digits of A# are accurate, with the least significant properly 4/5- rounded.
When assigning a constant value to a double precision variable, be sure to
include as many significant digits as possible (up to 17). If your constant has
seven or less significant digits, you might as well use single precision. Your
constant will only be accurate for as many significant digits as you include,
up to 17.
Examples:
10 PI#=3.1415926535897932
20 E#=2.7182818284590452
If you combine the # or other declaration character with a constant to force it
to a certain type, you cannot space after the declaration character.
Examples:
10 PRINT 87.2345432117896#+90.35762#
20 PRINT 87.23658!-90.32!
30 PRINT 87.23658#/90.35762#
40 PRINT 87.23658!*90.35762!
You can't use the % (integer) declaration character in this way at all.










