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

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.



Haskell supports rationals with module Data.Ratio, but uses a slightly different syntax: 1 % 3




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

Search: