Commit 32b4abe1 authored by Moody Salem's avatar Moody Salem

Move better remainder implementation

parent 3b4f4a25
......@@ -39,7 +39,7 @@ export class Fraction {
// remainder after floor division
get remainder(): Fraction {
return this.subtract(this.quotient)
return new Fraction(JSBI.remainder(this.numerator, this.denominator), this.denominator)
}
invert(): Fraction {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment