Hugos Posted September 1, 2019 Share 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? Link to comment
Moderators IIYAMA Posted September 1, 2019 Moderators Share 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 Link to comment
Hugos Posted September 2, 2019 Author Share Posted September 2, 2019 9 hours ago, IIYAMA said: http://Lua-users.org/wiki/FormattingNumbers Thanks! 1 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