lua-users wiki: Simple Round Use
function DIV(a,b)
return (a – a % b) / b
end
to get an integer result during a division.
(JlnWntr?)
The following function rounds a number to the given number of decimal places.
function round(num, Continue reading lua-users wiki: Simple Round→