Is there a way to choose what decimal point math.floor/ceil round to? Like make it round to the 100th or 1000th instead?
No, but you can do some fancy math with powers of ten to get that behavior:
function ceilBase(num, decimals) if not decimals then decimals = 0 end local pow = 10^decimals num = num*pow num = math.ceil(num) num = num/pow return num end
And the same for math.floor
.