fraction.js icon indicating copy to clipboard operation
fraction.js copied to clipboard

Cannot add to a fraction of value 0

Open alexcoplan opened this issue 11 years ago • 0 comments

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

alexcoplan avatar May 22 '14 08:05 alexcoplan