Index
Math

round

Round (<-value <-decimalPlaces)

Description

Rounds off a number to the specified number of decimal places. This always returns a float, even when you are rounding to a whole number.

Examples

trace(round(PI 2)) #print '3.14'

Index