'LinKin Posted February 20, 2014 Share Posted February 20, 2014 Hello I'm not so good at maths so I need help. How can I take the first 2 decimals of a number? For example; 3666/66 = 55,54545455 I'd want to take 55,54 How to do so? Link to comment
Karuzo Posted February 20, 2014 Share Posted February 20, 2014 https://wiki.multitheftauto.com/wiki/Math.round I think that should do that. Just like : x = 55,54545455 math.round(x, 2) 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