Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Everyone is using modulo wrong (felipec.wordpress.com)
1 point by thunderbong on Aug 13, 2024 | hide | past | favorite | 2 comments


I suspect that many people of HN are well aware of this and are using modulo correctly. I know I am.


I doubt it. Do you have an example of public code using modulo with negative numbers correctly?




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

Search: