Skip to content

Commit

Permalink
fix: wrong conversion for grams of carb/fat/protein (closes #57)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnyro committed Aug 10, 2024
1 parent 592f104 commit b2b4fd3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class EnergyConverter : UnitConverter {
FactorUnit(R.string.megajoule, 1E6),
FactorUnit(R.string.calorie, 4.184),
FactorUnit(R.string.kilocalorie, 4.184E3),
FactorUnit(R.string.grams_of_carbohydrate, 4.0 * 4.184),
FactorUnit(R.string.grams_of_fat, 9.0 * 4.184),
FactorUnit(R.string.grams_of_protein, 4.0 * 4.184)
FactorUnit(R.string.grams_of_carbohydrate, 4.0 * 4.184E3),
FactorUnit(R.string.grams_of_fat, 9.0 * 4.184E3),
FactorUnit(R.string.grams_of_protein, 4.0 * 4.184E3)
)
}

0 comments on commit b2b4fd3

Please sign in to comment.