Skip to content

UK Label Rounding Rule and the Difference Between the UK Label Compared to the Legacy and 2018 Label

Majin Sensei edited this page Oct 21, 2023 · 3 revisions

this is a copy of this internal wiki entry. This means that there are a few links that are for a private repo

the main task for this is https://github.com/mattsilvllc/Nutritionix-Yii/issues/351

for the uk label rounding rule, based on this https://github.com/mattsilvllc/Nutritionix-Yii/issues/3511#issuecomment-467041087

kcal and kj should both be rounded to the nearest one on this label.

Fat, Carbohydrate, Sugars, Fiber, and Protein should be rounded to the nearest one if greater than or equal to 10g, to the nearest 0.1g if <10g and >0.5g, and listed as <0.5g if <0.5g and >0g

Saturated fat should be rounded to the nearest one if greater than or equal to 10g, to the nearest 0.1g if <10g and >0.1g and listed as <0.1g if <0.1g and >0g

Salt should be rounded to the nearest 0.1g if greater than or equal to 1g, to the nearest 0.01g if <1g and >0.0125g and listed as <0.01 if < 0.0125g and >0g


for the legacy and uk label, the rounding rule is https://www.fda.gov/ICECI/Inspections/InspectionGuides/ucm114098.htm


the difference of the UK rounding rules and the legacy or 2018 label

attribute name rounding rule for the uk label rounding rule for the legacy and 2018 label
energy kj (calories * 4.184) round to the nearest one not applicable
     
calories / energy kcal round to the nearest one < 5 cal - express as zero
    < or = 50 cal - express to nearest 5 cal Increment
    > 50 cal - express to nearest 10 cal increment
     
fat calories not applicable < 5 cal - express as zero
    < or = 50 cal - express to nearest 5 cal Increment
    > 50 cal - express to nearest 10 cal increment
     
total fat rounded to the nearest one if greater than or equal to 10g > or = 5g - express to nearest 1g increment
  to the nearest 0.1g if <10g and >0.5g < 5g - express in nearest 0.5g increment
  and listed as <0.5g if <0.5g and >0g <0.5g - express as zero
     
saturated fat rounded to the nearest one if greater than or equal to 10g > or = 5g - express to nearest 1g increment
  to the nearest 0.1g if <10g and >0.1g 5g - express to nearest 0.5g increment
  and listed as <0.1g if <0.1g and >0g <0.5g - express as zero
     
polyunsaturated fat not applicable > or = 5g - express to nearest 1g increment
    < 5g - express in nearest 0.5g increment
    <0.5g - express as zero
     
monounsaturated fat not applicable > or = 5g - express to nearest 1g increment
    < 5g - express in nearest 0.5g increment
    <0.5g - express as zero
     
trans fat not applicable > or = 5g - express to nearest 1g increment
    < 5g - express in nearest 0.5g increment
    <0.5g - express as zero
     
cholesterol not applicable > 5 mg - express to nearest 5 mg Increment
    2 - 5 mg - express as "less than 5 mg"
    <2 mg - express as zero
     
sodium / salt rounded to the nearest 0.1g if greater than or equal to 1g > 140 mg - express to nearest 10 mg increment
(salt = sodium * 0.0025) to the nearest 0.01g if <1g and >0.0125g 5 - 140 mg - express to nearest 5 mg Increment
  and listed as <0.01 if < 0.0125g and >0g < 5 mg - express as zero
     
carbohydrate rounded to the nearest one if greater than or equal to 10g > or = 1g - express to nearest 1g increment
  to the nearest 0.1g if <10g and >0.5g < 1g - express as "Contains less than 1g " OR "less than 1g"
  and listed as <0.5g if <0.5g and >0g < 0.5g - express as zero
     
fiber rounded to the nearest one if greater than or equal to 10g > or = 1g - express to nearest 1g increment
  to the nearest 0.1g if <10g and >0.5g < 1g - express as "Contains less than 1g" OR "less than 1g"
  and listed as <0.5g if <0.5g and >0g < 0.5g - express as zero
     
sugars rounded to the nearest one if greater than or equal to 10g > or = 1g - express to nearest 1g increment
  to the nearest 0.1g if <10g and >0.5g < 1g - express as "Contains less than 1g" OR "less than 1g"
  and listed as <0.5g if <0.5g and >0g < 0.5g - express as zero
     
protein rounded to the nearest one if greater than or equal to 10g > or = 1g - express to nearest 1g increment
  to the nearest 0.1g if <10g and >0.5g < 1g - express as "Contains less than 1g" OR "less than 1g"
  and listed as <0.5g if <0.5g and >0g < 0.5g - express as zero
     
vitamin a / vitamin c / vitamin d / iron / calcium not applicable >50 - round to the nearest ten
    <=50 - round to the nearest five
    <=10 - round to the nearest two
    <1 express as zero