I have a game where you earn money, and it is very easy to get rich. I want to make it so that if you get money more than a million, instead of showing 1234567, it shows 1.2 million. The process I am trying to go for if the number is more than a million is:
1: get the first two digits
2: remove the first two digits
3: store the remaining digits into a list
4: divide the length of the list by 3
5: get that value in the list of suffixes - 1 (because lists start at 0, not 1)
I can make the list of suffixes, I just need help on how to make this process.