3 ms·
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.
by stevoski 4y ago
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.