For the complete documentation index, see llms.txt. This page is also available as Markdown.

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?