maulaku / wwdiary

Automatically exported from code.google.com/p/wwdiary
0 stars 0 forks source link

Improve the rounding system #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is the enhancement that you had in mind? Rounding makes the application 
sometimes unpredictable. For instance, I select a quantity of one and I get 2 
points. If I select 2, I get 5 points. Ok, it is easier to understand, but 
still, rounding should not influence the total daily points.

How should it work?
Either offer an option to select how many digits the user wants, or keep 
displaying rounded value but compute the remaining points using "hidden" digits 
(instead of rounded values), and only round the final counts of points 
remaining.

Can you provide an illustration of what you think it should look like (if
applicable)?
I select an item with 4.6 points. It is rounded to 5. Still, my daily allowance 
should be substracted by 4.6, not 5, and then rounded.

Original issue reported on code.google.com by nui...@gmail.com on 22 Aug 2012 at 7:54

GoogleCodeExporter commented 9 years ago
Rounding can be tweaked by editing the food point formula, however, I've heard 
of no support within WW that says points can be fractional.

Please link me the information if have any that contradicts this.

Original comment by ddumont on 22 Aug 2012 at 7:57

GoogleCodeExporter commented 9 years ago
I agree. Points should not be fractional (though the application sometimes 
inexplicably displays decimal points). But that does not prevent the formula 
from using fractional points, as long as the final result is rounded. It is 
transparent to the user, so you won't find mention of that in WW. But anyway, 
no big deal, thanks for answering.

Original comment by nui...@gmail.com on 22 Aug 2012 at 8:09

GoogleCodeExporter commented 9 years ago
Hmm... if you can try to narrow down how you get fractional points to display, 
please let me know, I'd like to fix that.

With multiple servings, nutritional info is multiplied, not the rounded point 
value.  Rounding should be done after all nutrition has been multiplied.

Closing the issue.

Original comment by ddumont on 22 Aug 2012 at 8:31