AY2425S1-CS2113-W14-3 / tp

0 stars 5 forks source link

[PE-D][Tester D] Addition error in calculating the net cashflow amount #228

Closed soc-se-bot closed 2 hours ago

soc-se-bot commented 7 hours ago

Steps to reproduce Enter the following commands in order: income Math Tuition /a 45.467 /c SALARY income English Tuition /a 45.467 /c SALARY list

Expected Output Based on the list displayed to the user after entering "list" command, the income from both the tuitions is $45.47. As such, based on the amount shown on the list, the Net Cashflow should have a value of $90.94.

Actual Output However $90.93 was displayed for the net cashflow. To the user this would act as a discrepancy.

Screenshot additionError.png


Labels: severity.Medium type.FunctionalityBug original: nirala-ts/ped#4

limkongkiat commented 5 hours ago

-ADD and EDIT should auto round the value to 2d.p., then save -Specify in DG that all amounts will be rounded off to 2d.p.