tigerman Posted June 20, 2011 Share Posted June 20, 2011 Hey, like subject says how to get rid of numbers.. like when u count 10/3 then awnser is 3,3333333 but how to make it just like 3 numbers after comma, so 3,33 thanks Link to comment
gokalpfirat Posted June 20, 2011 Share Posted June 20, 2011 I think math.round is the best way. Link to comment
Antibird Posted June 21, 2011 Share Posted June 21, 2011 Just in case, math.round is not a lua native function. See: Useful Functions. Also, if you have 9,99 do you wish it to become 10 or 9? Shall the float be dropped or the result is to be rounded? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now