Parses quantities from amounts. All amounts should be verified as
having only digits, optionally followed by a point and then more
digits. All these values should parse. So if there is a problem it
is a programmer error. Apply error.