Feat: make MOFraction comparable
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
# -----------------------------
|
||||
|
||||
Reference in New Issue
Block a user