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

Cannot add to a fraction of value 0 #3

Open
alexcoplan opened this issue May 22, 2014 · 0 comments
Open

Cannot add to a fraction of value 0 #3

alexcoplan opened this issue May 22, 2014 · 0 comments

Comments

@alexcoplan
Copy link

Hello,

Trying the following:

f = new Fraction(0);
console.log( f.add(new Fraction(1,2)).toString() );

Gives NaN (I'm guessing there's a divide by zero error somewhere?)

Would be great if this could be fixed or if there is a workaround.

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

1 participant