Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Ruby there is % which gives you remainders.

When we first teach children about division we teach them that, "17/5 = 3 with a remainder of 2". It is only later that they learn about decimal points and learn to say that 3.4 is the answer.



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

Search: