2 ms·
> No it's not. Division by zero is UNDEFINED Yeah OP is suggesting that the answer to lim x-> 0 1/x = infinity and thus that’s an intuitive answer. Unfortunate
by vlovich123 2y ago
> No it's not. Division by zero is UNDEFINED
Yeah OP is suggesting that the answer to lim x-> 0 1/x = infinity and thus that’s an intuitive answer. Unfortunately that’s obviously not correct precisely because it depends which side from 0 you approach and why just 1/0 is undefined (you could argue about 0+ and 0- but I view that more as IEEE754 weirdness that is used in niches rather than something that would meaningfully change the situation)
> How does a calculation return +infinity anyway?
Not sure what your actually asking but floating point representations generally support a concept of +/- inf.
> A reasonable result for a calculation is to return "?" or possibly NULL or nothing, depending on what other parts of the system are expecting.
That’s what floating point NaN is