diff --git a/pymath/fraction.py b/pymath/fraction.py index 450fb59..74faa3d 100644 --- a/pymath/fraction.py +++ b/pymath/fraction.py @@ -273,6 +273,9 @@ class Fraction(object): return steps + def __abs__(self): + return Fraction(abs(self._num), abs(self._denom)) + def __eq__(self, other): """ == """ if type(other) == Fraction: