by quantified · 1y ago · 0 comments
5 is the threshold because 0 is a number that rounds to 0. So half the numbers in the closed-open range [0-9) round down and half round up. Stated differently, numbers in [0-5) round down and in [5-10) round up.
No comments yet.