2 ms·
Many languages treat the construction 1/3 As a rational type, and do not convert to float unless you cast. Common Lisp comes immediately to mind. Evidently
by na85 5y ago
Many languages treat the construction
1/3
As a rational type, and do not convert to float unless you cast. Common Lisp comes immediately to mind. Evidently pyret is another.
- tromp 5y agoHaskell supports rationals with module Data.Ratio, but uses a slightly different syntax: 1 % 3