Briefle
LearnGlossaryPricing

Briefle words · Code & architecture

Minor units

Also called cents

Storing money as a whole number of the smallest unit of a currency, such as cents, so amounts are always exact integers.

Say it to an AI

Python function that totals a cart with tax, keeping money as integer minor units (cents) end to end. Compute tax with the Decimal type and an explicit rounding mode (ROUND_HALF_UP) to whole cents; only convert to dollars when formatting. No floats anywhere in the money path.

How an expert would brief the stronger version of “Cart total”.

See it

Try it as a puzzle →

A grocery delivery team prototypes the checkout total calculation in a notebook.

Study A · the weaker one
Study B · the stronger one

Why: B's PRICES_CENTS holds 115, 499 and 675, and cart_total_cents returns the exact integer 2375.

Related words

  • Single source of truth
  • Error code
  • Problem Details
  • Naming convention
  • REST
  • Resource
  • Path parameter
  • Pagination

Room 5 · APIs & data

Learn “Minor units” in a five-minute lesson

Start free
AI can build almost anything. The bottleneck is saying what you want.
WordsPricingTermsPrivacyRefundsContact
© 2026 Briefle