mukund1403 / pe

0 stars 0 forks source link

Servings cannot be float #5

Open mukund1403 opened 4 months ago

mukund1403 commented 4 months ago

Serving size can only be integer values which means half servings cannot be logged by users at all. This is a feature flaw because if a user decides to eat a snack or smaller meal that uses only 0.5 serving or if the user consumes a serving that is a float value, they will have to round up or down. This leads to loss of accuracy especially in calculating whether or not users have reached their caloric goals. This is a severity.medium because if a user consumed 2.5 servings of a meal which is 200kcal (e.g. asam pedas) and they can only log it as either 2 or 3 servings, the final calorie count will be very inaccurate.

Foods with high calorie count:

image.png

Error:

image.png

nus-se-bot commented 4 months ago

Your response not required for this bug as the team has accepted the bug as it is.