My answer to "implement fabs(), incorrectly". Seven and one third internet points to anyone who can say why it's incorrect, without looking up the spec. Hint: It's implementation defined. (Using C99 semantics because that's the only one I know reasonably well. :)https://twitter.com/oe1cxw/status/1144274172253822976 …
Yes, it's about negative zero. fmax(+0.0, -0.0) is allowed to return -0.0, and fabs(-0.0) is required to return +0.0.