round

round

> Functions

Returns the rounding of number. You can find rounding down with floor, and rounding up with ceil.

Parameters
Return
Examples

round(1) // 1 round(1.8) // 2 round(2.3) // 2 round(3.5) // 4 round(-12.79) // -13

See as well