round - EdgeIY/infiniteyield GitHub Wiki

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
⚠️ **GitHub.com Fallback** ⚠️