Description
Construct a supplied nearest-rounding nutrient-label interval.
Dietary arithmetic depends on as-purchased versus edible mass, per-serving versus per-100-gram bases, measured versus trace states and recall periods. A recorded allergen list is not a verified allergen-free declaration. Portion counts, label intervals and mass differences use supplied assumptions rather than establishing actual intake or nutritional suitability.
Construct a supplied nearest-rounding nutrient-label interval.
When to use this tool
Use Nutrient Label Rounded Interval when you already have displayedAmount, roundingIncrement and need to construct a supplied nearest-rounding nutrient-label interval.
How to use the tool and how it works
- Enter displayedAmount, roundingIncrement. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read lowerBound, upperBoundExclusive. Use the output convention below.
Require displayedAmount>=0 and roundingIncrement>0; lower=max(0,displayed-increment/2), upperExclusive=displayed+increment/2.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| displayedAmount | Displayed Amount | Required. Finite number; minimum 0. |
| roundingIncrement | Rounding Increment | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| lowerBound | Lower Bound | Required. Finite number. |
| upperBoundExclusive | Displayed amount+half increment, excluded under this supplied interval convention; not a selected legal labeling rule. | Required. Finite number. |
{
"input": {
"displayedAmount": 10,
"roundingIncrement": 1
},
"output": {
"lowerBound": 9.5,
"upperBoundExclusive": 10.5
}
} Limitations and assumptions
- The interval uses a lower-inclusive, upper-exclusive convention; the tool does not choose legal label rounding rules, verify an actual nutrient amount or model uncertainty.
- 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
Check original food labels, composition sources, ingredient/allergen information and dietary records before combining amounts. Use a complete appropriately interpreted dietary assessment when requirements or suitable intake matter; local scaling and source labels do not make those judgments.
References
Similar or alternative tools
- Nutrient Contribution Per Edible Gram
Scale a supplied per-100-gram nutrient value to edible mass.
- Food Label Serving Weight Crosswalk
Scale a label's per-serving amount to supplied consumed grams.