2016-01-24 Python Decimal The Decimal class in the standard library is the way to avoid double precision errors in Python.