Hugos Posted September 1, 2019 Posted September 1, 2019 I have a line with "money," this knowledge I frame in "dxDrawText." (For example, You Money: $156,000). I need to change the string (Lua) to get a number separated by a dot, i.e. "156.000," instead of "156000." I need to add dots every 3 digits starting at the end, but I don 't know how to do it properly? Говорю на русском. Sorry for bad english.
Moderators IIYAMA Posted September 1, 2019 Moderators Posted September 1, 2019 8 minutes ago, Hugos said: I have a line with "money," this knowledge I frame in "dxDrawText." (For example, You Money: $156,000). I need to change the string (Lua) to get a number separated by a dot, i.e. "156.000," instead of "156000." I need to add dots every 3 digits starting at the end, but I don 't know how to do it properly? http://Lua-users.org/wiki/FormattingNumbers 1 1 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
Hugos Posted September 2, 2019 Author Posted September 2, 2019 9 hours ago, IIYAMA said: http://Lua-users.org/wiki/FormattingNumbers Thanks! 1 Говорю на русском. Sorry for bad english.
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