Remember how floats can’t be compared with == against constant, because the float representation may not exists for the constant. Is that also true for 0.0? Or do most (or all) floating point engines have a special representation for 0.0
I’m looking for languages, IEEE specifications or floating point engines where this works or not.
Zero is guaranteed to be representable on any IEEE-754 system, and I know of no other floating-point system in which zero is not exactly representable. That’s not to say that such a system couldn’t exist, but it would be highly unusual.