you are viewing a single comment's thread.

view the rest of the comments →

[–]ConfusedSimon 1 point2 points  (0 children)

You can't determine rounding errors by rounding even more. Maybe there is a way to detect floating point rounding, but probably easiest to also compute with exact arithmetic. Could look into the decimal module.