Skip to content

PRECISION

FUNCTION

This command is used to perform numeric rounding and calculation.

SYNTAX

PRECISION numeric-value

numeric-value a numeric data name, variable, constant, or expression that results in an integer.

NOTES

  • Values with more than the specified number of decimal digits are rounded accordingly.
  • This command and rounding is effective after a numerical calculation or when a value is to be output.
  • If precision is not specified, the default value is set to 2.
  • Precision does not affect the storage of values resulting from INPUT, READ or CHANGE commands.

EXAMPLES

PRECISION 4

SEE ALSO

.PREC, LET

From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF