Get rid of negative zero?

I'm using OpenGL and I have it set up so that there is a function which is basically the equivalent of the standard printf(), and in this function I needed to invert the variables, so I have: GLOUT("Angle: (%5.2f, %5.2f, %5.2f)", -Camera.Rotation.X, -Camera.Rotation.Y, -Camera.Rotation.Z); and for some reason it returns "-0.0". It's not a huge issue, and it doesn't cause any issues, but I find it as a bit of a nuisance and I was wondering if there was any way to stop this from happening.
It is an artifact of how the FPU works. Don't worry about it.

If you are displaying information to the user, you might just want to check that it is not negative before displaying it: if (d == 0.0) d = 0.0;

Hope this helps.
Topic archived. No new replies allowed.