# The numbers look wrong

Recipe · Bugs, speed and data · RX08

Traces a suspect figure to its raw inputs, checks whether missing values turned into zero or units drifted, fixes only confirmed bugs, and verifies independently.

**Use it when:** A balance, metric, chart, or total on screen disagrees with what you expect.

## Steps

1. [Where did this number come from?](https://www.atlasscope.dev/prompts/where-did-this-number-come-from): trace the metric to raw inputs and recompute one example (read-only)
2. [Missing vs zero vs stale](https://www.atlasscope.dev/prompts/missing-vs-zero-vs-stale): check whether unknown or missing values are counted as zero (read-only)
3. [Rounding and unit mix-ups](https://www.atlasscope.dev/prompts/rounding-and-unit-mix-ups): check cents vs. dollars, percentages, and float rounding (read-only)
4. Fix confirmed causes only: wait for approval, then fix only proven bugs
5. [Check it independently](https://www.atlasscope.dev/prompts/check-it-independently): recompute again against raw source records to confirm the fix

## As one prompt

```text
The numbers look wrong. Trace a suspect number to its source, check missing-as-zero and unit/rounding bugs, fix only proven causes, and verify independently.

Run these steps one at a time. Wait for my yes after each step. Stay strictly read-only during Steps 1, 2, 3, and 5 — do not edit code, data, or config until I approve Step 4.

Step 1 (source trace — read-only): Trace the suspect metric(s) to raw inputs, transformation logic, filters, and assumptions, and recompute at least one real example independently. Bring back: raw inputs, formula (file:line), and independent recomputation. Stop if displayed numbers are stored verbatim with no calculation.

Step 2 (missing vs zero — read-only): Check where missing, unavailable, stale, or not-applicable values turn into 0 in storage, calculations, or display. Bring back: each affected field (file:line), how absence is stored, how math treats it, and what users see. Stop if no optional numeric fields are involved.

Step 3 (rounding and units — read-only): Trace currency, percentages, and rates across storage, API, and UI for floating-point drift, premature rounding, or scale mismatches (0.05 vs 5.0, cents vs dollars). Bring back: each value's numeric type and unit at every hop (file:line). Stop if no money, rates, or conversions are involved.

Step 4 (fix confirmed causes): After I approve, fix only the causes confirmed in Steps 1–3 and add a test covering each one.

Step 5 (independent check): Verify the fixed calculation directly against raw source records or an independent check outside your new unit tests, show the output, and note anything still uncovered.

Start your report in plain English: what you found, what it means, and whether I need to do anything. Put files, lines and commands underneath.
```

Source: https://www.atlasscope.dev/prompts/the-numbers-look-wrong
