PyMOTW: decimal – Fixed and floating point math
Originally posted
· 1 min read
The decimal
module implements fixed and floating point arithmetic using the model familiar to most people, rather than the IEEE floating point version implemented by most computer hardware. A Decimal instance can represent any number exactly, round up or down, and apply a limit to the number of significant digits.