Description
Convert supplied carbohydrate grams to exchange units.
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.
Convert supplied carbohydrate grams to exchange units.
When to use this tool
Use Carbohydrate Exchange Explicit Gram Factor when checking a supplied nutrient amount, protein factor or reporting normalization.
How to use the tool and how it works
- Enter carbohydrateGrams, gramsPerExchange. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read exchanges. Use the output convention below.
Convert supplied carbohydrate grams to exchange units. Require nonnegative carbohydrateGrams and positive gramsPerExchange; exchanges = grams/factor.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| carbohydrateGrams | Carbohydrate Grams | Required. Finite number; minimum 0. |
| gramsPerExchange | Positive caller-selected carbohydrate grams per exchange; no clinical exchange standard is selected. | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| exchanges | Exchanges | Required. Finite number. |
{
"input": {
"carbohydrateGrams": 45,
"gramsPerExchange": 15
},
"output": {
"exchanges": 3
}
} Limitations and assumptions
- The exchange convention is supplied, not a dietary prescription, diabetes plan or universal serving definition.
- 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
- Beverage Added Sugar One Serving Term
Return total and added sugar for one beverage serving.
- Dietary Recall Recipe Share Term
Allocate recipe nutrient to a consumed mass share.