If you are doing this in asp.net then their is split() function so it will give you that one split(" ,") and with you number............hope may help you
Finally I found one good way. numberX=3023788006 response.write FormatNumber(numberX , 0) output is 3,023,788,006 response.write FormatNumber(numberX , 2) output is 3,023,788,006.00 Thanks