marksweston / finance

A library for financial calculations in Ruby
https://rubygems.org/gems/finance
Other
217 stars 93 forks source link

NPV doesn't give same value as excel #44

Closed atourass closed 5 years ago

atourass commented 5 years ago

Hi,

I am using your gem on a project and the npv calculation seems to give different outputs than when I use Excel with the same inputs. For instance, when I try [1,2,3].npv(0.045) it gives 5.661 whereas Excel gives 5,42. Do you have any idea what can cause the difference?

Thanks