Open GreasySlug opened 1 year ago
Fixes #218.
Changes proposed in this PR:
[x] Add Ratio type
TODO
These contents are excluded
Float
@mtshiba
The display of rational numbers is not consistent. It would be better to display them in the form numerator/denominator (e.g. 3/10).
numerator/denominator
3/10
>>> 3/10 Ratio(3, 10) >>> 0.3 (3, 10) >>> 2.3 % 2 Fraction(3, 10)
Fixes #218.
Changes proposed in this PR:
[x] Add Ratio type
TODO
Removed
These contents are excluded
Currently known bugs
Float
type[ ] print! 0.3 runtime is 3/10 but test code eval is 0.3
@mtshiba