Brass Core Plugins

round

Rounds a value to the nearest integer or specified number of decimal places.

Syntax

round(expression, places)
round(expression)

Examples

.echoln round(pi()) ; Outputs 3.
.echoln round(pi(), 3) ; Outputs 3.142.

See Also