Just a quick note / observation …
The formulas you are using are not rounding the “points” correctly to the Weight Watchers standards of always rounding up.
I would use on the following lines:
var points = Math.ceil(cals/50 + fat/12 + fiber/5);
var points = Math.ceil(protein/10.93 + carbs/9.206 + fat/3.886 - fiber/12.45);
… instead of the original
PS: You might want to look at noting “Weight Watchers” and “PointsPlus” are trademarked.
- The topic ‘[Plugin: Weight Watchers Points & PointsPlus Calculator] Points Calculation Should Round to a Wh’ is closed to new replies.