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