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

Some langs have that in their standard included batteries.

(Shameless Common Lisp plug: http://clhs.lisp.se/Body/t_ration.htm)






Yes including C++, the language mentioned in the parent post (`std::ratio`)



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

Search: