Hacker News new | past | comments | ask | show | jobs | submit login

Nothing unfortunate about that. When you work with rationals, it's very easy to grow incredibly large denominators, at which point all arithmetic operations slow to a crawl. Floats are fast and predictable, which is why they're used for most calculations in CL and other languages.



Except when you hit denormals or underflow. Or accidentally lose precision ending up with a wrong result.

If I could get a cent for every money transaction done on floats and incorrectly rounded, I'd be a billionaire.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: