WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Weight Watchers Points & PointsPlus Calculator] Points Calculation Should Round to a Wh

[Plugin: Weight Watchers Points & PointsPlus Calculator] Points Calculation Should Round to a Wh

  • Edward Caissie
    Theme Review Admin, The JellyBeen Man

    @cais

    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:
    62: var points = Math.ceil(cals/50 + fat/12 + fiber/5);
    74: var points = Math.ceil(protein/10.93 + carbs/9.206 + fat/3.886 - fiber/12.45);

    … instead of the original math.round formula.

    PS: You might want to look at noting “Weight Watchers” and “PointsPlus” are trademarked.

    http://wordpress.org/extend/plugins/weight-watchers-pointsplus-and-points-calculator/

  • The topic ‘[Plugin: Weight Watchers Points & PointsPlus Calculator] Points Calculation Should Round to a Wh’ is closed to new replies.