math.round()
math.round(n)
rounds n
to the nearest whole number.
Returns
if
n
is a number, returnsn
rounded to the nearest whole number;0.5
rounds up.if
n
is not a number, returnsnull
.
Last updated
Was this helpful?
math.round(n)
rounds n
to the nearest whole number.
if n
is a number, returns n
rounded to the nearest whole number; 0.5
rounds up.
if n
is not a number, returns null
.
Last updated
Was this helpful?