If you are interested in performing fixed-point arithmetic, there is a decimal module in the Python standard library that can do this.
In fact, it has a more flexible floating point ability than the built-in one. Flexible I mean that he:
Has βsignalsβ for various exceptional conditions (they can be configured to do different signal transmissions)
Has positive and negative infinities, as well as NaN (not number)
You can distinguish between positive and negative 0
Allows you to set a different rounding scheme.
Allows you to set your maximum values.
Altogether, it is convenient for millions of households .
John mulder
source share