Print Precision ⎕PP
⎕PP is the number of significant digits in the display of numeric output.
⎕PP is an implicit argument of:
⎕PP is ignored for the display of integers.
⎕PP may be assigned any integer value in the range 1 to 34. ⎕PP has Namespace scope.
Examples
⎕PP←10
÷3 6
0.3333333333 0.1666666667
⎕PP←3
÷3 6
0.333 0.167 If ⎕PP is set to a value ≥17 (when ⎕FR is 645) or 34 (when ⎕FR is 1287), floating-point numbers may be converted between binary and character representation without loss of precision. Then, if ⎕CT is 0 (to ensure exact comparison), for any floating-point number N the expression N=⍎⍕N is true.
⎕PP does not apply in the following contexts:
- Array notation output (when
]APLAN.Outputis on) ⎕JSONexport⎕CSVexport
See Also
- Display of Arrays – how arrays appear in the session