nus-cs2103-AY2021S1 / pe-dev-response

0 stars 0 forks source link

Total Cost does not reflect 2 decimal place after editing in edit_finance #3153

Open nus-se-bot opened 3 years ago

nus-se-bot commented 3 years ago

Edit amount 12.301 rounded to nearest 2d.p. will be 12.30. But the total cost reflected in the GUI is not 12.30 but 12.3

image.png


[original: nus-cs2103-AY2021S1/pe-interim#2906]

tanpinxi commented 3 years ago

Team's Response

This is the expected outcome. The app has been designed with the following principals in mind:

1 dp for integers e.g. 80 -> 80.0 so it is clear to the user that the amount is an integer value without decimal places 1 or 2 dp for decimal values accordingly e.g. 8.10 -> 8.1 to avoid wordiness and unnecessary "0"s, especially with larger volumes of data displayed

Duplicate status (if any):

--