Skip to content
Toon edited this page Jan 5, 2026 · 2 revisions

Documentation

number round(<number> num, <int> numDecimalPlaces)

Note: int is a whole number

Description

Rounds number num to numDecimalPlaces decimal places and returns the result.

Example

-- Note: This is just a snippet
["Function"] = function(args, speaker)
    print(round(3.141592653, 2)) --> 3.14
end

Clone this wiki locally