Skip to content

round

Signature

round(number, number)

Description

Does roundoff to upto the given decimal places.

Examples

round(`3.14159`, `2`) == `3.14`
round(`2.5`, `0`) == `3`
round(`1.005`, `2`) == `1.01`