title: How to add suffixes to an amount of money in javascript
body: <p>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:</p>
  <p>1: get the first two digits</p>
  <p>2: remove the first two digits</p>
  <p>3: store the remaining digits into a list</p>
  <p>4: divide the length of the list by 3</p>
  <p>5: get that value in the list of suffixes - 1 (because lists start at 0, not 1)</p>
  <p>I can make the list of suffixes, I just need help on how to make this process.</p>