How can a primitive float value be -0.0? What does that mean?

Viewed 28935

How come a primitive float value can be -0.0? What does that mean?
Can I cancel that feature?

When I have:

  float fl;  

Then fl == -0.0 returns true and so does fl == 0. But when I print it, it prints -0.0.

5 Answers
Related