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

Final portfolio value is not rounded to two decimal places. #18

Closed alistair-marshall closed 4 years ago

alistair-marshall commented 4 years ago

For some reason, the final value of each cycle is parsed as an integer. Should probably use this.roundTwoDecimals.

https://github.com/alistair-marshall/cFIREsim-open/blob/45aaa0864ededa9d0346255c98798e6f47f8531a/js/cFIREsimOpen.js#L440