Directives
FLOATINGPOINT Switch to Scientific Notation
   
Format FLOATINGPOINT
   
Description Use the FLOATINGPOINT 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^xxis displayed as .nnnnnExx).

In FLOATINGPOINT 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 FLOATINGPOINT mode.

   
See Also BEGIN Reset Files and Variables,
CLEAR Reset Variables,
PRC System Variable
PRC( ) Function
PRECISION Change Current Precision,
RESET Reset Program State.


*Note* FLOATINGPOINT notation is reset to standard decimal notation during a RESET operation however prior version 5 it was left on.


   
Examples

0010 FLOATINGPOINT
0020 A=5/3
0030 PRINT A
-:RUN

.16666666666667E+01

0010 PRECISION 2 ! Sets precision to two
0020 ROUND ON ! Sets rounding default mode
0030 A=5/3
0040 FLOATINGPOINT
0050 PRINT A
-:RUN
.167E+01