Vossen Posted May 11, 2008 Posted May 11, 2008 (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 May 11, 2008 by Vossen
zackrspv Posted May 11, 2008 Posted May 11, 2008 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ë ë§§ëñ§ë øƒ !ïƒë.
Vossen Posted May 11, 2008 Author Posted May 11, 2008 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
Vossen Posted May 11, 2008 Author Posted May 11, 2008 As posted above: #Include <String.au3> $var = 1329929 $var2 = _StringAddComma($var, ",") ConsoleWrite($var2 & @CRLF) Thank you very much!
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