Hacker News new | ask | show | jobs
by dTal 3872 days ago
Scheme has rationals, but decimal literals aren't rational by default. You have to type #e in front of it, or express it as a fraction.

It really ought to be fixed at the implementation level (how much stuff would it really break if floatin point errors went away?), but failing that I'd love a macro that did it for me. I can't figure out how to write one robustly.