nus-cs2113-AY2324S2 / pe-dev-response

0 stars 0 forks source link

incorrect unit price in reciept #1048

Open nus-pe-bot opened 5 months ago

nus-pe-bot commented 5 months ago

when user previously inputs a item cost with large number of decimal places, the item is not the same as reflected in the receipt when ordering

image.png


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

Zhengwinter commented 5 months ago

Team's Response

For the receipt, the price is intentionally rounded off to two decimal places, since that is the convention when expressing money. Moreover, that is the receipt that is for the customer and it is hence formatted as such.

We however do accept that we should have done rounding off for decimal places for the menu to improve the consistency of the program.

Duplicate status (if any):

--