Tox Posted October 16, 2015 Posted October 16, 2015 I am looking for math. function that will work to show only 2 digits after comma. Current is showing all the digits after it What does it look like now: 16.66666667 What do I want it to look like: 16.66 Thanks in advance.
1LoL1 Posted October 16, 2015 Posted October 16, 2015 math.floor But i think math.floor is: 16.66666667 --> 16
Tox Posted October 16, 2015 Author Posted October 16, 2015 well I know math.floor but this is for a K/D ratio so I will have to write last 2 digits as well. Thank you though
Moderators IIYAMA Posted October 16, 2015 Moderators Posted October 16, 2015 https://wiki.multitheftauto.com/wiki/Math.round Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
Tox Posted October 16, 2015 Author Posted October 16, 2015 https://wiki.multitheftauto.com/wiki/Math.round Thank you a lot.
Moderators IIYAMA Posted October 16, 2015 Moderators Posted October 16, 2015 np. Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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