Re:Why does changing 0.1f to 0 slow down performance by 10x?
by lelf on Sunday March 11, 2012 @05:21PM
(#3691325)
1/(0-0) = -∞, 1/(0+0) = ∞
[ Parent
| on HN ]
Re:Why does changing 0.1f to 0 slow down performance by 10x?
by stephencanon on Sunday March 11, 2012 @05:34PM
(#3691355)
Actually, (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.