Javascript IRR (Internal rate of return) Formula Accuracy

后端 未结 7 1600
名媛妹妹
名媛妹妹 2021-02-04 20:00

I\'m using a IRR function in javascript to create calculation a that is done in excel using its own IRR function. The problem is mine is little off and I have no idea why. Here\

7条回答
  •  花落未央
    2021-02-04 20:47

    It's a floating point issue to be sure. You're going to want to use a library like BigDecimal.js to handle your values. It's really the only way to avoid this issue.

提交回复
热议问题