DaveBruwer / super-barnacle

0 stars 0 forks source link

Rounding Error #12

Closed DaveBruwer closed 9 months ago

DaveBruwer commented 9 months ago

In some cases the loan runs one month to long, with the last payment amount being 1.4326684170858546e-8. Figure out how to use rounding to get rid of this behaviour. What rounding do banks use, and when?

DaveBruwer commented 9 months ago

fixed, any remaining capital less than $0.005 is set to $0.00 to avoid tiny final payment.