Methodology — how we calculate
Every result on this site comes from a deterministic algorithm: the same inputs always produce the same output. No language model and no external service takes part in any calculation, and no third-party API is called to produce the numbers or the working.
How the engine works
Each calculator is defined in its own text file containing the equation, variables, units, explanation and reference test cases. Those files are read once at start-up and held in memory, and the definition then generates the input form, the unit selectors, the results, the working and the page metadata. A calculator, its documentation and its tests therefore cannot drift apart.
Symbolic solving
Equations are solved symbolically with SymPy. Give two of the three values in
V = I × R and the engine rearranges the equation algebraically for the unknown,
then shows you the rearrangement, the substitution and the result. That is why reverse
solving works on every calculator that allows it, without a separate equation per case.
Numeric accuracy
Inputs are read as exact rationals rather than binary floats, and arithmetic runs at up to
thirty significant digits before rounding for display. This avoids the accumulated rounding
errors that show up in financial and percentage work. Money specifically uses Python's
Decimal type rather than floating point.
Units
Units are handled by Pint, which checks dimensional consistency before any
conversion. The engine cannot add metres to kilograms or convert litres into seconds; such
cases are rejected with a clear message instead of producing a meaningless number. An
Arabic and English alias table means «كم», «كيلومتر» and km all resolve to the
same unit.
Arabic numerals
Every field accepts Arabic-Indic (١٢٣), Persian (۱۲۳) and Western (123) digits, the Arabic
decimal separator (٫) and thousands separator (٬), and fractions such as 1/2
and 3 1/2. All of these are normalised before the maths begins.
Testing
Each calculator definition carries reference test cases with inputs and expected outputs. They run automatically on every change, and a calculator that fails its tests cannot ship. On top of that, property tests check invariants — for example that reverse solving returns the original input for any valid values — and validation tests check every definition: units, cross-links, the presence of both language versions, and a real explanation rather than filler copy.
What we do not do
- We do not generate the working with a language model; steps derive from the equation.
- We do not copy explanations or content from other sites.
- We do not publish placeholder calculators or empty pages for indexing.
- We do not create a page per numeric value ("10 km to miles", "11 km to miles").
- We do not invent ratings, reviewers or expert endorsements.
Limits of use
Financial calculators give mathematical estimates for educational use and are not investment advice. Construction calculators estimate quantities from the dimensions entered; actual quantities vary with design, execution and waste allowance. Health calculators show general indicators and are not diagnostic. Every calculator states its assumptions on its own page.