Syntax
round(number,number)
Description
The round() function returns a floating point number that is a rounded version of the specified number, with the specified number of decimals.
The default number of decimals is 0, meaning that the function will return the nearest integer.
Example
include("math")
x = round(5.76543, 2)
println(x)
x = round(5.76543)
println(x)
x = round(5.26543)
println(x)
5.77
6
5