In lua there are 2 rounding methods in the math library: math.floor(x) – Rounds the number x down to the nearest integer math.ceil(x) – Rounds the number x up to the nearest integer
Note, this does not change the variable x to the rounded number, if you wish to do this you need a separate variable e.g.
local x = 10.0348503
local down = math.floor(x) -- 10
local up = math.ceil(x) -- 11
Another neat trick you can use for rounding numbers is through formatted ASCII text like this:
local rounded = tonumber(string.format("%.1f", 10.0348503)) -- 10
The .1 is how many decimal places you want to go. So you could change it to 0.2 for 2 d.p.