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

C does not have a modulo operator. It has a remainder operator, which works perfectly fine. Calling C's `%` a 'broken modulo operator' is like calling `+` a 'broken minus operator'. Quite a few languages have separate operators, keywords, or functions for 'modulo' and 'remainder'.


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

Search: