Negative zero is a value that occurs in several representations of signed numbers, including IEEE 754 floating point formats. It usually compares equal to positive zero but may result in different results under certain operations.
Negative zero is a value that occurs in several representations of signed numbers, including IEEE 754 floating point formats and integers using ones' complement or sign-and-magnitude representation. It usually compares equal to positive zero but may result in different results under certain operations, for example with IEEE 754 floating point 1. / 0. = ∞
while 1. / -0. = -∞
.
Negative zero does not exist in the common two's complement representation for signed integers.
Further details can be found in Wikipedia's article about signed zero.