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

Error with nper function #13

Closed
cleicar opened this issue Sep 27, 2018 · 1 comment
Closed

Error with nper function #13

cleicar opened this issue Sep 27, 2018 · 1 comment

Comments

@cleicar
Copy link
Contributor

cleicar commented Sep 27, 2018

I am using the nper function and works fine most of the times.

But for this specific values:
Exonio.nper(0.0575 / 12.0, -76.0, 943183.21)

I am having an error:
Math::DomainError Exception: Numerical argument is out of domain - "log"

Any idea about what can be the problem? Thanks.

@etagwerker
Copy link

@cleicar and I reviewed this issue and it seems that problem is with the data that we are providing.

The payment amount should not be lower than the interest amount.

Here is an idea: Maybe we should raise an error with more information about this? It could avoid future issues reports.

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

3 participants