WordPress.org

Forums

Weight Watchers Points & PointsPlus Calculator
Points Calculation Should Round to a Wh (1 post)

  1. 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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Weight Watchers Points & PointsPlus Calculator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Edward Caissie
  • This topic is not resolved
  • WordPress version: 3.4.2

Tags

No tags yet.