Description
Return a symmetric nearest-rounding envelope for a food-label value.
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.
Return a symmetric nearest-rounding envelope for a food-label value.
When to use this tool
Use Food Label Rounding Interval One Value when checking one explicit energy, label-resolution or rounding term.
How to use the tool and how it works
- Enter displayed, increment, floorAtZero. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read lower, upper. Use the output convention below.
Return a symmetric nearest-rounding envelope for a food-label value. Require increment > 0; use displayed plus/minus increment/2, optionally flooring the lower endpoint at zero and then requiring displayed >= 0.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| displayed | Displayed | Required. Finite number. |
| increment | Increment | Required. Finite number; strictly above 0. |
| floorAtZero | Floor At Zero | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| lower | Lower | Required. Finite number. |
| upper | Upper | Required. Finite number. |
{
"input": {
"displayed": 10,
"increment": 2,
"floorAtZero": true
},
"output": {
"lower": 9,
"upper": 11
}
} Limitations and assumptions
- This is an explicit arithmetic convention, not an actual jurisdiction's labeling or tie-rounding rule.
- 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
Similar or alternative tools
- Food Record Dish Leftover Nutrient Term
Estimate nutrient consumption after dish leftovers.
- Food Composition Water Free Basis
Convert as-fed concentration to a dry-matter basis.