Skip to content

Check a calculated number

check_number

Recomputes one number with a named tool and compares it with a claimed value.

Runs
Built, not hosted
Ask your assistant

What it is

Recomputes one number with a named tool and compares it with a claimed value. Use when a number already calculated, here or elsewhere, is to be compared with what the tool gives on the same inputs: give the tool, that tool's arguments, the result field the number belongs to (for example result.massG), the claimed value with its unit, and the tolerance to apply, relative (a decimal fraction) or absolute (in the field's unit). The reply says whether the claim agrees within that tolerance, or gives the signed difference (claimed minus recomputed) in the reply's unit and the relative difference, which has no unit. Units are never converted: a claim in another unit, including another prefix, is not compared, and both units are named. Spellings count as one unit only on a closed list: M and mol/L, and L and l, each with the same prefix (mM and mmol/L, µL and µl); 1/h, h⁻¹ and h-1; µ, μ and u for micro; degC and °C. Spellings count as one unit, also within each factor of a compound unit in the same order (g/l is g/L; mmol/L/h is mM/h); a prefix is never moved between factors. When the field is missing or states no unit, the reply lists the result's numeric fields with their units. Where the tool withholds or refuses a value, there is no number to compare and none is estimated. The reply carries the named tool's qualification, cite line, receipt and workspace link. To calculate a number for the first time, call the tool itself; to re-check a quoted receipt, use verify_receipt.

It checks another tool's reply; it runs no scientific method of its own.

What it does

You give

  • tool (required): The name of the tool that computes the number, as tools/list gives it (not check_number or verify_receipt).
  • arguments (required): That tool's own arguments, exactly as it takes them ({} for none).
  • field (required): The path of the number in that tool's reply: 'result' followed by .key and [index] steps, for example result.massG or result.relative.ic50Molar.
  • claimed (required): The claimed number and its unit, for example { value: 4.383, unit: 'g' }. The unit must be the one the reply states for the field, or a spelling of it on the list in this tool's description; it is never converted.
  • relativeTolerance: A relative tolerance, as a decimal fraction (0.001 is one part in a thousand): at least 0 and below 1. Not taken for °C or for a difference between two values. Give this or absoluteTolerance, not both; there is no default. The recomputed value is rounded to 12 significant figures, as every served number is, so a value copied from the reply agrees at 0 on the same engine build.
  • absoluteTolerance: An absolute tolerance in the field's unit, at least 0. Give this or relativeTolerance, not both; there is no default.

No request is recorded for this tool.

Limits

  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
  • No other limit is recorded for this tool.
Every input, with its units6 inputs
  • tool (required): The name of the tool that computes the number, as tools/list gives it (not check_number or verify_receipt).
  • arguments (required): That tool's own arguments, exactly as it takes them ({} for none).
  • field (required): The path of the number in that tool's reply: 'result' followed by .key and [index] steps, for example result.massG or result.relative.ic50Molar.
  • claimed (required): The claimed number and its unit, for example { value: 4.383, unit: 'g' }. The unit must be the one the reply states for the field, or a spelling of it on the list in this tool's description; it is never converted.
  • relativeTolerance: A relative tolerance, as a decimal fraction (0.001 is one part in a thousand): at least 0 and below 1. Not taken for °C or for a difference between two values. Give this or absoluteTolerance, not both; there is no default. The recomputed value is rounded to 12 significant figures, as every served number is, so a value copied from the reply agrees at 0 on the same engine build.
  • absoluteTolerance: An absolute tolerance in the field's unit, at least 0. Give this or relativeTolerance, not both; there is no default.

The calculation

0 methods, each with its equations, constants and worked example.

No method record is behind this tool: it is an exact operation on its input.

Sources

No source is recorded for this tool's methods.

How it is checked

Hostile inputs

Sent 68 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason.

Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

Same answer

Called twice and with its arguments in another order, it gave the same result.

Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

Cite a number from this toolthe cite line

Every reply carries a cite line naming the tool, the server version, each method with its version and level, and the receipt. Quote it with any number taken from the reply.

check_number, server 1.0.0; status invalid-input, nothing ran; no method record; receipt <input hash, 12 characters>/<output hash, 12 characters>; methods https://www.drybench.com/methods/calculators; page https://www.drybench.com/methods/tools/check-number. There is no result to quote; this line identifies the call and its receipt.
Changes to its methods0 changes

No change is logged for these method versions.