Feat: make MOFraction comparable

This commit is contained in:
2021-09-26 08:29:07 +02:00
parent 78ce8f767a
commit bf55470467
2 changed files with 7 additions and 1 deletions

View File

@@ -269,7 +269,8 @@ class Fraction(Token):
>>> f.decimal
<Decimal 0.3333333333333333333333333333>
"""
return Decimal(_Decimal(self._mo.numerator._value) / _Decimal(self._mo.denominator._value))
return Decimal(self._mo._value)
# -----------------------------