TOPIC 16/5114 MINNOT STARTED

Testing rules and calculations

Many defects hide in sums. Write the rule down, work the answer out yourself in a different way, and compare.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: checking a shopping bill. You add up the bill yourself, then look at how the shop rounds. The rule is easy: add the prices. The pennies are where it goes wrong. A shop that rounds each item and a shop that rounds only the total can differ by a few pennies on the same basket. Both can be fair, but the bill must say which.

Daily List is a to-do list app with a paid plan. Nina, the product owner, wrote how the price must work. That statement of how the software must decide or calculate is a . Tom, the tester, works out the right answer by hand and compares it with the app. That is a .

The last piece is the . It says how many decimals to keep and which way to round. If nobody writes it down, two people can work out two different totals, and both think they are right.

The picture has a limit. A shop bill is short enough to add by eye. A software price may mix a discount, a coupon and a plan, so the hand sum needs a plan of its own.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PLAIN WORDS · 1 in this section
decimals
digits written after the decimal point

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Writing the rule, working the answer another way and pinning the rounding shows where the pennies go wrong.

  1. Write the rule and the rounding rule
  2. Work independently with exact decimal or scaled arithmetic
  3. Write the expected result before the run
  4. Compare with the app
  5. Test a value on an exact half
Five steps for a calculation

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The shopper's own sum of the billThe calculation check, worked out independently
The shop's printed billThe app's computed result
The shop's rule for roundingThe rounding rule
A basket that falls on an exact halfA test value on an exact half
Rounding each item or only the totalWhen the rounding happens, once at the end or at each step

WHERE THIS PICTURE STOPS

  • A bill is short enough to add by eye. A software price may mix a plan, a discount and a coupon.
  • A shop's rounding is usually printed. A product's rounding rule may be missing until a tester asks.
  • A shopper sees the bill in full. A tester must also check the receipt and the export.

HOOK

Rule, own sum, compare, test the half.

REMEMBER IT THIS WAY

A contrast: two neighbours told apart by one test.

Two shops, one basket: one rounds each item, the other rounds the total. Before comparing results, find out when the rounding happens.

What each part of the trick stands for
In the trickWhat it stands for
Each itemrounds each item
The totalrounds the total
The billthe rounding rule says which

TELL A FRIEND

A shopper adds up the bill and looks at how the shop rounds. A tester does the same for a price rule.

OFTEN MIXED UP WITH Decision tables in depth: merging rules. Folded decision tables give one test for each rule. This lesson adds the sums behind each rule and the rounding that can spoil them.

PRACTISE AND KEEP

Sources for this topic — 3 sources
  1. Market practice

    What Every Programmer Should Know About Floating-Point Arithmetic (The Floating-Point Guide) ↗ — floating-point-gui.de · Basic answers: binary floating-point cannot store decimals such as 0.1 exactly, so money is better held in a decimal type or in whole cents (search excerpt, page not opened)

    Free to read. Explains that binary floating-point cannot store decimals such as 0.1 exactly, and that money is better held in a decimal type or in whole cents. Cite for that point only. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number found. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    ISTQB Certified Tester Foundation Level Syllabus v4.0.1 ↗ — International Software Testing Qualifications Board · Foundation Level syllabus v4.0.1, the section on decision table testing: conditions and actions as rules, with a test for each feasible column (confirmed against the syllabus, read in full text from a mirror copy of the publisher PDF, v4.0.1, 15 September 2024)

    The examinable statement of what a foundation-level tester is expected to know: six chapters, 64 learning objectives, each tagged K1 Remember, K2 Understand or K3 Apply, plus the test-design techniques the qualification names and groups as black-box, white-box and experience-based.

    Used here for the test-craft questions a Payment Quality Assurance Analyst and a Production Support Analyst are asked. It is cited for what the syllabus says a tester must be able to do, never as a rule about how payments work. · Checked 2026-11-07

    v4.0.1 is dated 15 September 2024 and is a list of corrections to v4.0 (21 April 2023) that reworded six learning objectives — not a cosmetic reissue. 78 pages.

    Two traps this entry exists to stop. v4.0.2 is the German edition (1 March 2025, 94 pages), so sorting by version number reaches the wrong document. And the widely-repeated per-chapter question allocation "8 / 5 / 4 / 11 / 9 / 3" is wrong: it is 8 / 6 / 4 / 11 / 9 / 2, derived from three official sample-exam answer keys and confirmed against the Exam Structure Tables.

    The single most consequential detail for a question bank: white-box coverage — statement and branch — is K2 "Explain", not K3 "Apply" (FL-4.3.1, FL-4.3.2, FL-4.3.3), and MC/DC, path and condition coverage are declared out of scope in §4.3. A question asking a candidate to compute branch coverage is testing something this syllabus does not.

    Read through a mirror, because the publisher's own domain could not be fetched (a reachability gap, not a statement about the publisher). A 403 there is a policy refusal and says nothing about whether the document exists or is reachable elsewhere.

    Anyone on an unrestricted network should open the canonical URL above and confirm the section and page numbers cited against it. Every claim drawn from this entry is written so that it can be checked against a numbered page.

    Read from two independent PDF-to-markdown conversions mirrored on raw.githubusercontent.com. They are treated as faithful because they were produced by unrelated parties with different tooling, agree on the full 64-item objective set including wording, and reproduce the same internal inconsistency present in the source PDF. Chapter 1 reads "testware that supports" where Appendix B reads "that support". A conversion artefact does not replicate across two toolchains.

    The licence permits attributed non-commercial extracts and use as the basis for articles. Whether a site that sells a pass may rely on that is an owner's decision, not this entry's.

    7 November 2026 review: actual publisher PDF 4.0.1, 15 September 2024, 78 pages, front matter/copyright and relevant numbered operative sections 0.5–0.10 and chapters 1–6 compared with CTFLpractice lessons. Earlier mirror/search descriptions are historical access records. TheK2 white-box objectives require explanation; the source does not justify a categorical ban on small numeric illustrations that support explanation. Later Exam Rules 1.2§4.1.4 usesK2 for keyword definitions, while syllabus§0.5 usesK1; keep dated scopes distinct. No copied questions or figure assets.

  3. Market practice

    decimal: Decimal fixed point and floating point arithmetic (Python documentation) ↗ — Python Software Foundation · Publisher material opened 6 November 2026; version and scope recorded in source registry and domain audit. Synthetic Daily List outcomes follow the stated teaching contract.

    Per the search excerpt, decimal numbers can be represented exactly, unlike binary floats. The module keeps trailing zeros, which suits money, and gives the programmer control over rounding. Build a Decimal from a string, not from a float. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.