News for hackers. Stuff that matters.
Re:One does not simply calculate the absolute value by gvx on Sunday August 22, 2021 @04:50PM (#28269477)
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.

There are no comments on this comment yet.