All I see is math.floor and math.ceil, what would you do to round to the nearest tenths/hundredths etc
Try taking a look at this page.
It has very useful information about rounding functions in Lua.
If we look at a normal rounding function it goes like this:
function round(num) return math.floor(num+0.5) end print(round(1.45))
However we want to round it to a higher place. Notice how in numbers like 14.5 we round it and it becomes 15. We want that, but with 1.45, to become 1.5. This is really simple actually, all we do is multiply it by how many places we want it to go when we math.floor it, then divide it afterwards. 10th place Example:
function round(num) return math.floor((num*10)+0.5)/10 end print(round(1.45))
100th place Example:
function round(num) return math.floor((num*100)+0.5)/100 end print(round(1.457))
If you need any more help just ask! :D