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

Because / is floating point division, and infinity is a defined value in floating point numbers.

Try it again with div for integer division.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: