Put this in your backpack if you use giant numbers in your projects! This works by dividing by 1,000 repeatedly, and storing how many times it's divided by 1,000, and grabbing the relevant suffix!
Credit to others for the idea.