round
0
0
Edited Sep 1, 2015
Usage:
[number]
y
←
round(
[scalar]x [,
[number]nbdecs]
)
Returns x rounded to nbdecs digits after the decimal place. nbdecs is set to 0 if not specified.
Examples:
round(10.1234) - yields 10
round(10.1234, 2) - yields 10.12
round(pctin(Q1,1),2) - Rounds after computing percent. Remember a percentage is between 0 and 1, so you'll probably want nbdecs >= 2.
round(pctin(round(z1),null,5) - Rounds before computing percent.