Skip to content

Glossary: Python Basics

Decimal

Also written: decimal module

An exact decimal number type from the `decimal` module, good for money. Create it from text, as in `Decimal("0.10")`, so `Decimal("0.10") + Decimal("0.20")` gives exactly `0.30`.

Where the book teaches it

Related terms

quantize