Is signed zero always available?

Steven D'Aprano steve at
Wed Jun 22 09:27:58 EDT 2016

Both IEEE-754 floats and Decimals support signed zeroes, that is -0.0 and
0.0 are two distinct (but equal) values.

(There is only one int zero: -0 and 0 are the same value.)

Signed Decimal zero should always be available. What about signed float
zero? Are there any platforms where Python is available that don't support
signed zeroes?


More information about the Python-list mailing list