Skip to content

Cannot add to a fraction of value 0 #3

@alexcoplan

Description

@alexcoplan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions