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

Common Lisp, of course, gets modulus right:

(mod -1 5) => 4 (mod 13 4) => 1 (mod -13 4) => 3 (mod 13 -4) => -3



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

Search: