Simplified branching using powers of ten.
The opposite of numbers_to_words.py.