4 ms·
not quite the same, but Scheme has rationals. Now that I think about it, the Scheme standard (R5RS at least) does not require an implementation to support the
by deckard1 5y ago
not quite the same, but Scheme has rationals.
Now that I think about it, the Scheme standard (R5RS at least) does not require an implementation to support the full numeric tower. I can't remember which parts are required, but I do wonder now if it permits an implementation that only has rationals and drops floating point. Most implementations, obviously, go the other route and only support floats. But it would be interesting to see.