nus-cs2113-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Servings cannot be float #909

Open nus-pe-bot opened 4 months ago

nus-pe-bot 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


[original: nus-cs2113-AY2324S2/pe-interim#1075] [original labels: type.FeatureFlaw severity.Medium]

nikhil-2101 commented 4 months ago

Team's Response

No details provided by team.

Duplicate status (if any):

--