I want to use math.floor() but it rounds to real numbers. Is there a way I can set it to round tenths not rounding it to real numbers?
You first multiply your number by 10 round it, then divide by ten again. :)
I once created a handy function for this;
function Round(Num, Decimals) return math.floor((Num)*(10 ^Decimals) + 0.5)/(10^Decimals) end
In your case, use
Round(x, 1)
where x is your number.
Please ask if you would like an explanation :)
Marked as Duplicate by adark and Articulating
This question has been asked before, and already has an answer. If those answers do not fully address your question, then please ask a new question here.
Why was this question closed?