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

Register a new account

×

• Wiki

• Back

• Git