ProvideX V8.20 > Language Reference > 2. Directives
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
BEGIN Reset Files and Variables, p.32,
CLEAR Reset Variables, p.53,
PRC System Variable, p.567
PRC( ) Function, p.501
PRECISION Change Current Precision, p.246,
RESET Reset Program State, p.286.
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