News for hackers. Stuff that matters.
Re:Fast midpoint between two integers without overflow by stevoski on Wednesday December 07, 2022 @08:29AM (#33894096)
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.

There are no comments on this comment yet.