
DIGITS - significant digits of floating point numbers

Calling sequence:

DIGITS := integer

Parameter:

integer   --  positive integer

Summary:

DIGITS gives the number of significant decimal digits when saving and calculating
floating point numbers. DIGITS can be set to any integer between 1 and 231-
1. If a floating point number is given with more than DIGITS places then the
extra decimal places are removed.

Through the assignment DIGITS := NIL; DIGITS is set to the default value
10. DIGITS is an environment variable.

>>  1.756746574666;

     1.756746574

>>  float(PI);

     3.141592653

>>  DIGITS := 40: float(PI);

      3.141592653589793238462643383279502884197

>>  DIGITS := 1: float(PI), 3.9, -3.2;

      3., 3., -3.

See also:  float

