3 ms·
That's a nice hack, but you're violating what many people consider a tenet of writing good code. I don't consider that an argument in favor of negative zero and
by phkahler 8y ago
That's a nice hack, but you're violating what many people consider a tenet of writing good code. I don't consider that an argument in favor of negative zero and all the baggage of IEEE 754.
- tehjoker 8y agoFwiw, in my code, I got to write "-0" explicitly and the method for checking is std::signbit(x)