Skip to content

Glossary: Coding with AI Assistants

quantize

A `Decimal` method that rounds to a set number of places; `price.quantize(Decimal("0.01"))` rounds to cents.

Where the book teaches it

Related terms

Decimal