Jump to content

# [Solved]Number Split

## Recommended Posts

Hello, i need to Split big numbers e.g. 20000 make it 20,000

how could i do that??

Edited by Command3r

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

#### Share this post

##### Share on other sites

ConsoleWrite(_StringThousandSep('56868797689645') & @CRLF)
ConsoleWrite(_StringThousandSep('1000') & @CRLF)

Func _StringThousandSep(\$sString) ; By AZJIO - http://www.autoitscript.com/forum/topic/146585-stringformat-number-thousand-separator/?p=1037882
Return StringRegExpReplace(\$sString, '(\A\d{1,3}(?=(\d{3})+\z)|\d{3}(?=\d))', '\1,')
EndFunc   ;==>_StringThousandSep

• 1

#### Share this post

##### Share on other sites

THANKS

[font="arial, helvetica, sans-serif;"]Advice for you[/font][font="arial, helvetica, sans-serif;"]: [/font][u]Search[/u] before posting.

[font="arial, helvetica, sans-serif;"] *********** Problem solved? if yes [/font][color=rgb(0,0,0);font-family:arial, helvetica, sans-serif;] *********[/color]

[font="arial, helvetica, sans-serif;"]******* press "Mark Solved" button. *******[/font]

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

×

• Wiki

• Back

• Git