junyi73 / pe

0 stars 0 forks source link

addIngredient command rounds very small values to the price of 0.00 #10

Open junyi73 opened 1 week ago

junyi73 commented 1 week ago

The addIngredient command rounds the price of ingredients to 0.00 if the ingredient price inputted during the addIngredient command is low enough. This is an unusual behaviour as the addIngredient command does not allow you to add ingredients if you try something like "addIngredient ingredient 0" but the program rounds it off to 0.00 if the price is low enough.

How to recreate the bug: 1) Input the command "addIngredient Ingredient 0.0000000001" 2) Go to the ingredient catalogue using viewIngredientCatalogue command 3) Notice that the price of the ingredient you just added costs 0.00

image.png

nus-pe-bot commented 5 days ago

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