Sign in to follow this  
Followers 0
Vossen

1000 separator

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Check out the string functions from manual

Share this post


Link to post
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ë 맧ëñ§ë øƒ !ïƒë.

Share this post


Link to post
Share on other sites

I guess it's StringFormat (http://www.autoitscript.com/autoit3/docs/functions/StringFormat.htm).

I just can't get any meaning from that, it's like chineese for me.

// Vossen

Share this post


Link to post
Share on other sites

As posted above:

#Include <String.au3>
$var = 1329929
$var2 = _StringAddComma($var, ",")
ConsoleWrite($var2 & @CRLF)
Thank you very much! :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0