1local number = 15.57
2local number2 = 15.23
3
4print(math.floor(number + 0.5)) --16
5print(math.floor(number2 + 0.5)) --151--You can round answers to the nearest multiple of a number
2--For example, rounding 13 to the nearest multiple of 3 is 12, since 12 is
3--divisible by 3
4local number = 15.2
5local multiple = 3 --the multiple you choose
6print(math.floor(number/multiple+0.5)*multiple --Add 0.5
7
8--Or just round to the nearest whole number
9print(math.floor(number + 0.5))