Description
Return fat-derived energy and its share of total energy.
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 fat-derived energy and its share of total energy.
When to use this tool
Use Meal Fat Energy Share Term when checking one explicit energy, label-resolution or rounding term.
How to use the tool and how it works
- Enter fatGrams, energyPerFatGram, totalEnergy. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read fatEnergy, fraction. Use the output convention below.
Return fat-derived energy and its share of total energy. Require nonnegative fatGrams and energyPerFatGram and positive totalEnergy; multiply grams by factor, then divide by total.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| fatGrams | Fat Grams | Required. Finite number; minimum 0. |
| energyPerFatGram | Energy Per Fat Gram | Required. Finite number; minimum 0. |
| totalEnergy | Total Energy | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| fatEnergy | Fat Energy | Required. Finite number. |
| fraction | Calculated fatEnergy/totalEnergy; the tool does not cap an inconsistent result at one. | Required. Finite number. |
{
"input": {
"fatGrams": 20,
"energyPerFatGram": 9,
"totalEnergy": 600
},
"output": {
"fatEnergy": 180,
"fraction": 0.3
}
} Limitations and assumptions
- The fraction can exceed one because totals are not reconciled; no recommended intake is selected.
- 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
- Recipe Fat Drainage Energy Adjustment
Adjust a recipe's fat and energy after drainage.
- Nutrient Unit Energy Ratio
Return energy per supplied nutrient mass.