decimal — Decimal fixed-point and floating-point arithmetic¶ Source code: Lib/decimal.py The decimal module provides support for fast correctly rounded decimal floating-point arithmetic. It offers several advantages over the float datatype: Decimal “is based on a floating-point model which was designed with people in mind, and necessarily has a paramount guiding principle – computers must provide
![decimal — Decimal fixed-point and floating-point arithmetic](https://cdn-ak-scissors.b.st-hatena.com/image/square/3a53e982d46d56c53fb3e7f0b5e3d2ce30a8f391/height=288;version=1;width=512/https%3A%2F%2Fdocs.python.org%2F3%2F_static%2Fog-image.png)