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.
Glossary: Coding with AI Assistants
A `Decimal` method that rounds to a set number of places; `price.quantize(Decimal("0.01"))` rounds to cents.