For example I would like to display:
- 100000000 as 100M
 - 50000000 as 50M
 - 500000 as 0.5M
 
What's the best way to do this? If something like this has been asked and answered, let me know. I wasn't 100% sure how to phrase this question while searching, so I may have missed it.