Implement fractions with class methods i.e. __add__ and __mul__ etc #395
Labels
bb: minor
Minor issue according to bug bounty categorization
bug bounty
This issue is prized out as part of the Bug Bounty Program
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
Currently, fraction handling is very tedious, requiring specialized functions like
frac_mul(x, y)
to multiply fractions.Describe the solution you'd like
Since #366 was resolved, it is now possible to implement dunder methods for the
Fractions
class in the fractions std lib - this would allow overwriting the behavior of i.e.__add__
s.t.x + y
is valid when x and y areFraction
s.Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: