3 ms·
That wouldn't solve it: max(0.0, -0.0) would be false ? 0.0 : -0.0 The problem is that 0.0 == -0.0. As long as you don't take care of signed zero, you cannot g
by gvx 5y ago
That wouldn't solve it: max(0.0, -0.0) would be false ? 0.0 : -0.0
The problem is that 0.0 == -0.0. As long as you don't take care of signed zero, you cannot guarantee that abs(x) has no negative sign.