This is an old revision of the document!
⇐ Index
Round (<-value <-decimalPlaces)
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.
trace(round(PI 2)) #print '3.14'
⇐ Index