Jump to content

1000 separator


Recommended Posts

Hello!

I have (i hope) a minor problem.

EDIT: Yes, I tried to search the forum, but without luck.

When I got a VAR = 1000, I would like my program to print 1,000 or when the VAR is = 1000000 then make it write 1,000,000.

Hope someone can help me, thanks in advance!

// Vossen

Edited by Vossen
Link to comment
Share on other sites

Hello!

I have (i hope) a minor problem.

EDIT: Yes, I tried to search the forum, but without luck.

When I got a VAR = 1000, I would like my program to print 1,000 or when the VAR is = 1000000 then make it write 1,000,000.

Hope someone can help me, thanks in advance!

// Vossen

As posted above:

#Include <String.au3>
$var = 1329929
$var2 = _StringAddComma($var, ",")
ConsoleWrite($var2 & @CRLF)

-_-------__--_-_-____---_-_--_-__-__-_ ^^€ñ†®øÞÿ ë×阮§ wï†høµ† ƒë@®, wï†høµ† †ïmë, @ñd wï†høµ† @ †ïmïdï†ÿ ƒø® !ïƒë. €×阮 ñø†, bµ† ïñ§†ë@d wï†hïñ, ñ@ÿ, †h®øµghøµ† †hë 맧ëñ§ë øƒ !ïƒë.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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