Description
Return total and added sugar for one beverage serving.
A food nutrient amount depends on mass, composition, retention and the chosen reference or exchange convention. Nitrogen-derived protein and a single amino-acid ratio are analytical terms rather than complete measures of dietary adequacy.
Return total and added sugar for one beverage serving.
When to use this tool
Use Beverage Added Sugar One Serving Term when checking a supplied nutrient amount, protein factor or reporting normalization.
How to use the tool and how it works
- Enter concentrationPer100, servingVolume, addedFraction. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read totalSugar, addedSugar. Use the output convention below.
Return total and added sugar for one beverage serving. Require nonnegative concentrationPer100 and servingVolume and addedFraction in [0,1]; sugar = concentration*volume/100 and added sugar multiplies by the fraction.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| concentrationPer100 | Sugar mass per 100 serving-volume units; choose compatible volume and mass units. | Required. Finite number; minimum 0. |
| servingVolume | Serving Volume | Required. Finite number; minimum 0. |
| addedFraction | Added Fraction | Required. Finite number; minimum 0; maximum 1. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| totalSugar | Total Sugar | Required. Finite number. |
| addedSugar | Added Sugar | Required. Finite number. |
{
"input": {
"concentrationPer100": 10,
"servingVolume": 250,
"addedFraction": 0.8
},
"output": {
"totalSugar": 25,
"addedSugar": 20
}
} Limitations and assumptions
- The volume unit must match the per-100 basis; added-sugar classification is supplied rather than inferred.
- 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 appropriate food-composition and analytical sources, and professional dietary guidance for individual requirements or treatment plans.
References
Similar or alternative tools
- Carbohydrate Exchange Explicit Gram Factor
Convert supplied carbohydrate grams to exchange units.
- Dietary Recall Recipe Share Term
Allocate recipe nutrient to a consumed mass share.