Improve precision tests

... and clean up some unnecessarily complicated code.
This padded with spaces which is wrong. Falling back to `%d` is enough.