Expand description
The numbers check of a report: every number a text states must be one of the facts, as rounded for the text.
Unlike super::check, which reads a chat reply sentence by sentence, this check looks at
numbers only and leaves the words to the writer: a report may say anything about the figures,
as long as each figure is one of the facts. It reports the numbers that are not, and changes
nothing.
- Rounding: a number matches a fact that rounds to it at the precision it is written with.
13.2%matches13.19,13%matches12.6,1.2 millionmatches1,234,567, but13.21does not match13.2(a figure more precise than the facts is made up).Tolerance::Exactasks for the value itself. - Shares: with
ratios_as_percent,13.19%matches the ratio0.1319and0.13matches13%. - Notation:
1.234.567and1,234,567are the same number, and so are13,19and13.19. A number that can be read both ways (1.234) matches either reading. Multipliers (15k,15 rb,2 jt,1.5 million,3 miliar) are applied. Signs are ignored: “down 5%” states the figure-5%as5%. - Words:
0,1and2written alone are words (“2 stores”), not figures. A digit glued to letters before it (Q3,H1,v2) is a name, not a figure.
Facts are texts, read the same way, or JSON values, whose numbers are taken as they are (a
JSON 1.234 is one and a quarter, never a thousand).
Structs§
- Figures
- The numbers some facts hold.
- Number
Rules - How numbers are compared.
- Unsupported
Number - A number the facts do not hold, with the sentence it stands in.
Enums§
- Tolerance
- How close a number must be to a fact.