The Python decimal module provides support for fast correctly-rounded decimal floating point arithmetic.
The decimal
module provides support for fast correctly-rounded decimal floating point arithmetic. It offers several advantages over the float
datatype: