Skip to content

Main content

Nutrient Label Resolution Gap Tool

Calculate nutrient label resolution gap from explicit caller-supplied inputs.

Loading tool…

Description

Compare label resolution on a common per-mass basis.

Food energy and label values depend on the declared nutrient factors, serving basis and rounding convention. A numerical fraction or rounding envelope does not select a regulatory rule, establish food quality or determine individual nutritional needs.

Compare label resolution on a common per-mass basis.

When to use this tool

Use Nutrient Label Resolution Gap when checking one explicit energy, label-resolution or rounding term.

How to use the tool and how it works

  1. Enter firstQuantum, secondQuantum, firstServingMass, secondServingMass. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read firstPerMassQuantum, secondPerMassQuantum, gap. Use the output convention below.

Compare label resolution on a common per-mass basis. Require positive quanta and serving masses; divide each quantum by its serving mass and return first-minus-second gap.1

Input fieldMeaning and unitsAccepted input
firstQuantumFirst QuantumRequired. Finite number; strictly above 0.
secondQuantumSecond QuantumRequired. Finite number; strictly above 0.
firstServingMassFirst Serving MassRequired. Finite number; strictly above 0.
secondServingMassSecond Serving MassRequired. Finite number; strictly above 0.
Output fieldInterpretationReturned shape
firstPerMassQuantumFirst Per Mass QuantumRequired. Finite number.
secondPerMassQuantumSecond Per Mass QuantumRequired. Finite number.
gapGapRequired. Finite number.
json
{
  "input": {
    "firstQuantum": 1,
    "secondQuantum": 2,
    "firstServingMass": 100,
    "secondServingMass": 100
  },
  "output": {
    "firstPerMassQuantum": 0.01,
    "secondPerMassQuantum": 0.02,
    "gap": -0.01
  }
}

Limitations and assumptions

  • The same nutrient and compatible mass units are required; this does not compare actual nutrient concentrations.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Use the applicable labeling method and matched food-composition basis; assess dietary implications with appropriate professional context.

References

  1. Calculation and input contract: dietetics/nutrient-label-resolution-gap — tool.io

Similar or alternative tools