Since in IEEE floating point format, the sign bit is separate from the value, you have two different values โโof 0, positive and negative. In most cases, this does not matter; both zeros are compared equal, and they really describe the same mathematical value (mathematically, 0 and -0 are the same). Where the difference can be significant when you have a flaw, and you need to know if the overflow has occurred with a positive or negative value. Also, if you divide by 0, the infinity sign you get depends on the sign 0 (i.e. 1 / + 0.0 gives + Inf, but 1 / -0.0 gives -Inf). In other words, most likely, it will not affect you.
Please note, however, that a different conclusion does not necessarily mean that the number itself is different. It is possible that the value in Windows is also -0.0, but the output procedure in Windows does not distinguish between +0.0 and -0.0 (they are compared anyway).
source share