Closed s-hadinger closed 3 weeks ago
Add math.round() with the same semantics as C round() function:
math.round()
C
round()
math.round(3.5)
4
math.round(-3.5)
-4
math.floor(x + 0.5)
Add
math.round()
with the same semantics asC
round()
function:math.round(3.5)
returns4
math.round(-3.5)
returns-4
(which is different frommath.floor(x + 0.5)
)