abs method

Fraction abs()

Returns the absolute value of this fraction.

Implementation

Fraction abs() => isNegative ? -this : this;