Boost logo

Boost Users :

From: Alain Cormier (alain.work_at_[hidden])
Date: 2005-11-29 14:15:55


I use boost 1.32 with VS 6.0 (sp5) on Windows2000.

If I try this :

int anIntValue(-0);
std::cout << anIntValue << '\n';\

I get : 0

And, if I try this :
boost::format formatTest("My test : %0.0f \n");
double theValue(-0.0002);
std::string theString = boost::io::str(formatTest % theValue);

I get : "My test : -0"

Is it the right behavior? I was expecting the same result (simply a 0).
Maybe I am wrong...

Thank you for any advise / suggestion.

Alain



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net