Skip to content

Glossary: Coding with AI Assistants

Decimal

Also written: decimal.Decimal

A Python type for exact decimal numbers, used for money at Kettle & Crane because a float can drift. Build one from text, such as `Decimal("55.00")`.

Where the book teaches it

Related terms

quantize