Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

irr crashes on Rails 2.3.8 #11

Closed
c-castillo opened this issue Jun 5, 2012 · 2 comments
Closed

irr crashes on Rails 2.3.8 #11

c-castillo opened this issue Jun 5, 2012 · 2 comments

Comments

@c-castillo
Copy link

Me again. I have a strange performance issue on Ruby 1.9.3p194 with Rails 2.3.8. When I run a simple calculation of irb to limited set of cashflows on irb, it works fine.
But when i'm running ./script/console or in the app itself, .irr takes infinutum time and crashes the app server.

In the Rails app, I include the gem in the Gemfile and include the finance Module on the class.

Thanks in advance.

@c-castillo
Copy link
Author

Problem solved.

Every member of the input array to compute the IRR must be converted to Flt::DecNum type

@gustiando
Copy link

@c-castillo I had no luck with using Flt::DecNum. I know this has been AWHILE, but I'm very curious if you've dealt with a similar performance issue and tried a different approach. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants