xirr
xirr copied to clipboard
Calculates IRR of a Cashflow, simillar to Excels, XIRR formula.
Without the patch number `rbenv` was failing with the following error: ``` $ rbenv install ruby-build: definition not found: 3.3 The following versions contain `3.3' in the name: 2.3.3 3.3.0-dev...
For some reason the commit added (https://github.com/tubedude/xirr/commit/0c89d72cfdb4e1e0bb448a2326adac8626dce85e) to remove RubyInline is not the same as PR #24, and a require was left in the code. That require fails, as the...
Use pure ruby instead of `Inline` feature. Since Ruby math functions are already implemented in C it does not impact on performance. In C extention `BigDecmial` is casted to `double`....
First of all great gem! Love how flawless this runs on my machine. The calculation seem even more smooth than excels calculation of xirr. I have troubles deploying it to...
Hey there! Could you explain why the following code enter in infinite loop? ``` cf = Xirr::Cashflow.new cf
**Specs:** * `master` branch. **How to reproduce:** ```rb require "date" values = [ [Date.parse("13 Dec 2022"), -10000.0], [Date.parse("13 Dec 2022"), 8000.0], [Date.parse("13 Dec 2022"), 2500.0], [Date.parse("30 Jan 2023"), 1100.0] ]...
I've not yet been able to pinpoint what is going on here. Will try to narrow it down further when I get a chance. But this gives the right results:...
Hi, Are you planning to support Rails 6? If so, could you please make the adjustments. Thanks a lot!
config/initalizer/xirr.rb ``` Xirr.configure do |config| config.period = 5000 end ``` Entering the rails console and checking `Xirr::PERIOD` its still the default value `365`. rails 5.2 ruby 2.5.x