Jump to content

help (string)


Hugos

Recommended Posts

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
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

 

  • Like 1
  • Thanks 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...