Bug 919319 - Simplify number parsing. r=dholbert