You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
- Equivalents of operator* and operator/ templates are provided
by implemening `__mul__`, `__rmul__`, __truediv__`, `__rtruediv__`
in Python code for `openshot.Fraction` class
- An implementation of `__format__` is also provided, allowing
numeric format strings to be used directly on Fraction objects,
e.g. `v = Fraction(3, 9); print(f"{v:0.3f}") # prints '0.333'`