11 ms·
1/(0-0) = -∞, 1/(0+0) = ∞
by lelf 15y ago
1/(0-0) = -∞, 1/(0+0) = ∞
- stephencanon 15y agoActually, (0-0) evaluates to +0 in the default rounding mode, so both of those expressions will typically return +∞. 1/-0 will give you -∞, of course.
- lelf 15y agoWell, I meant it as in math notation, not in C. (Strictly speaking, 1/0 in C is kaboom! (undefined behaviour))