Open nus-se-bot opened 4 years ago
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
--
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
[original: nus-cs2103-AY2021S1/pe-interim#2906]