ROUND

 

ROUND lets you round variables to a specific decimal precision. It is recommended to first DUP or DECLARE a new variable to leave existing variable in place.

 

Syntax:

ROUND variable

 

The above example rounds variable to a whole number. I.e., 1.5234 rounds to 2

 

Syntax for specific precision:

ROUND variable#2

 

The above example rounds variable to 2 decimal places. I.e., 1.5234 rounds to 1.52

 

Related topics:

Glossary Variables