Catch any exception thrown by NSNumberFormatter when trying to parse non-numeric input, and return an error instead.
Corrected the fraction for zero to what the tests expect.
Fixed all failures relating to negative integers, including negative one.