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
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