Description Usage Arguments Examples
Function for calculating the total energy value of a product
1 | energy_total(weight_of_product, protein, fat, carbohydrates, fiber = 0)
|
weight_of_product |
numeric, weight of used product |
protein |
numeric, protein content in the product for which we calculate the energy value expressed in grams |
fat |
numeric, fat content in the product for which we calculate the energy value expressed in grams |
carbohydrates |
numeric, carbohydrates content in the product for which we calculate the energy value expressed in grams |
fiber |
numeric, fiber content in the product for which we calculate the energy value expressed in grams, 0 by default |
1 2 | energy_total(50, 1.2, 0.9, 11.8, 3)
energy_total(35, 8, 32, 52)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.