News for hackers. Stuff that matters.
Re:1/0 = 0 by ummonk on Saturday August 11, 2018 @02:06AM (#17738592)
>It's also a bit odd because it introduces a discontinuity: as the divisor goes towards zero the result of the operation gets greater until it reaches exactly zero and it yields 0. Wouldn't it make more sense to return INT_MAX (for integers) or +inf for floats?

Unless you're using unsigned ints, the discontuity will exist no matter what you do, because of negative divisors.

There are no comments on this comment yet.