-0.0 displayed as 0 on STLport 4.6.2

Developers
Louis
2007-01-31
2013-05-13
  • Louis
    Louis
    2007-01-31

    We are testing STLport version 4.6.2 here and std::cout of float (or double) set to -0.0 is displayed as "0".  Has anyone else encountered this behavior?

    <<<--------------------START OF TEST-------------------->>>
    #include <iostream>
    int main() {
        float f = -0.0;
        std::cout << f << std::endl;
        return 0;
    }
    <<<--------------------END OF TEST-------------------->>>

    Thank you.

     
    • 4.6.x not supported. Ignored.

       
    • And, btw, this is right.