Home > Language Reference > Floating Point Calculation Functions > Precision

#Precision

The #Precision system variable specifies the number of decimal places in floating-point calculation functions.

Usage

Used to round a result keeping only the needed decimals.

Syntax

#Precision = n

Parameters

n, integer, timeout value in seconds. 

Remarks

The default value is 2.

See also

DecimalSeparator$
Add$
Divide$
Multiply$
Subtract$

Example

#Precision = 3         'Keep 3 decimals after the decimal separator