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

If a=1 and b=1, the midpoint should be 1.

But in computing, assuming we are only dealing with integers, 1/2 == 0. So 1/2 + 1/2 returns 0.



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

Search: