alistair-marshall / cFIREsim-open

An forked version of the popular retirement calculator (cFIREsim.com) completely in javascript and open-source.
https://alistair-marshall.github.io/cFIREsim-open/
Apache License 2.0
30 stars 12 forks source link

Fix rounding of portfolio final value #22

Closed alistair-marshall closed 4 years ago

alistair-marshall commented 4 years ago

Previously the final value was rounded to an integer, this change rounds to two decimal places. Fixes #18

alistair-marshall commented 4 years ago

Whilst testing, I have noticed that there are many other places in the code where things are rounded to the nearest integer. I suggest this gets expanded to fix all of these issues.