math.round()

math.round(n) rounds n to the nearest whole number.

Returns

  • 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?