>wowhelm_
~/forever/addon-api/function/math.round

math.round

documented function · LuaMathExtensions
math.round(value, decimalPlaces) : roundedValue

Rounds a value to the specified number of decimal places, with halfway values rounded away from zero.

──ARGUMENTS
value
number (The value to round.)
decimalPlaces
number, default 0 (The number of decimal places to preserve. Negative values round to positions left of the decimal point.)
──RETURNS
roundedValue
number (The rounded value.)
──DETAILS
Secret Arguments
AllowedWhenUntainted
──VERSION HISTORY

Present since at least 1.60.1.70707, the first build we track.