Because of approximations.
For starters the “4 calories per gram” rule your applying isn’t exact. It’s usually something closer to 3.7-3.9 depending on what exactly the ‘sugar’ is.
Similarly, the numbers on nutrition labels are not exact. Calories over 50 are rounded to the nearest 10, so “160” calories means between 155 and 165. Similarly for carbs anything over 1g gets rounded to the nearest gram, so “43g” means between 42.5 and 43.5.
Latest Answers