Prevent IEEE 754 floating point errors in both decimal and numeric