nutritionix / nutrition-label

Create a FDA-style nutrition label with any nutrition data source (even the Nutritionix API - http://www.nutritionix.com/api)
http://www.nutritionix.com/
MIT License
176 stars 66 forks source link

changes on the %DV computations #140

Closed majin22 closed 1 year ago

majin22 commented 1 year ago

link to the internal task https://syndigo.atlassian.net/browse/WELL-2206

When the global preferences for ‘Daily Values to Use’ are set to either ‘Legacy Version’ OR ‘2018 Version’, please ensure that the rounding rules for the %DV are updated to the rules listed below. This should ONLY apply to the vitamins and minerals (Potassium, Vitamin D, Vitamin A, Vitamin C, Calcium, Iron).

<1% express as 0
=1%-2% express as 2%
<=10% round to nearest 2%
>10%-50% round to nearest 5%
>50% round to nearest 10%
majin22 commented 1 year ago

@Yurko-Fedoriv I just want to let you know that a new version of the jquery label plugin has been published. Thanks.