132
FLOATING POINT Directive
Switch to Scientific Notation
Format
FLOATING POINT
Description
Use the FLOATING POINT directive to have ProvideX start using scientific notation
with all numeric data. In scientific notation, a number is represented as a fraction
times ten to some power (e.g., .nnnnn*10^xx is displayed as .nnnnnExx).
In FLOATING POINT mode, no rounding is done on numeric calculations. If the
numeric output is unformatted, ProvideX uses scientific notation (e.g., .314159E+01).
Use the PRECISION directive to end FLOATING POINT mode.
See Also
Note: FLOATING POINT notation will change to standard decimal notation during a
RESET operation.
Examples
0030 FLOATING POINT
0040 A=5/3
0050 PRINT A
RUN
.16666666666667E+01
0010 PRECISION 2 ! Sets precision to two
0020 ROUND ON ! Sets rounding default mode
0030 A=5/3
0040 FLOATING POINT
0050 PRINT A
-:RUN
.167E+01