Basically take a number and split it into thousands. I.e. take three chars from the end of the number until there is 3 or less chars left.