New Tool Radar

AI Research & Fact-Checking

How to Check an AI’s Rounding of a Money Amount to Two Decimals

Check an AI's rounding of a money amount to two decimals against the half-up rule, because cutting digits off is truncation, not rounding, and it always pays less.

Schematic diagram: an AI answer says 2.345 rounds to 2.34, while half-up rounding gives 2.35; the verdict is Wrong.

Money is written to two decimals, so a calculated amount such as £2.345 has to become either £2.34 or £2.35. The half-up rule says a third decimal of 5 or more rounds the second decimal up, so £2.345 becomes £2.35. An AI that simply cuts the third decimal off gives £2.34, and that is truncation, not rounding.

The half-up rule used in UK schools is: look at the next digit; if it is 5, 6, 7, 8 or 9, round up, and if it is 0, 1, 2, 3 or 4, round down. For money the standard practice is to round to two decimals using half-up rounding.

Use the practice amounts

The amounts below are synthetic. They are about a fictional library shop, and they were not produced by any AI tool. They are the only source for the exercise.

Practice amounts — Northfield Library shop, calculated totals:

  • Bookmarks: £2.345.
  • Postcards: £12.685.
  • Tote bags: £7.995.
  • Pencils: £3.141.

Practice AI answer: "Rounded to two decimals: bookmarks £2.34, postcards £12.68, tote bags £7.99, pencils £3.14."

Check each rounding against the half-up rule

Expected result. We checked the UK Calculator page on rounding to decimal places. We did not run an AI tool on the practice amounts. The checked list below is what to expect if the figures are correct; run the same check yourself on the practice material above.

Amount AI answer says Correct (half-up) Verdict
£2.345 £2.34 £2.35 (third decimal 5, round up) Wrong — the AI truncated instead of rounding
£12.685 £12.68 £12.69 (third decimal 5, round up) Wrong — the AI truncated instead of rounding
£7.995 £7.99 £8.00 (third decimal 5, round up, carry the 9s) Wrong — the AI truncated instead of rounding
£3.141 £3.14 £3.14 (third decimal 1, round down) Correct

Truncation always pays less

The first three rows all fail the same way: the AI dropped the third decimal instead of rounding it. Truncation only ever moves a positive amount down, so a shop that truncates every total quietly undercharges on every tie. Rounding half-up moves ties up, which is the rule the customer and the till both expect.

To check one yourself, look at the third decimal digit. If it is 5 or more, add one to the second decimal digit; if it is 4 or less, leave it. If adding one turns a 9 into 10, carry it left: £7.995 becomes £8.00, not £7.99 and not £7.910.

What to do with each verdict

  • Correct: keep the rounded amount, and keep the unrounded amount with it so the next reader can check the rounding.
  • Wrong: replace it with the half-up result. Do not keep the truncated amount and add a note; a wrong total in a price list will be copied.
  • Rule not stated: do not assume half-up. Ask which rounding rule was used first; half-up and half-to-even give different answers on exact ties.

Limits

  • This guide checks rounding against the half-up rule, the everyday rule taught in schools. Some systems use half-to-even (banker’s rounding), under which 2.345 becomes 2.34; if the source states that rule, judge the AI against that rule instead.
  • Rounding is not the same as truncation. Truncation drops digits without looking at them; rounding looks at the next digit first.
  • A rounded total is not exact. Keep the unrounded figures for any further arithmetic, and round only the figure you display or charge.
  • No AI tool was run for this guide. The practice amounts and answer are synthetic.

Sources

See all