D
Darius.Moos AT esigma-systems DOT de
Hi,
there seems to be a problem with manipulators in g++/gcc-2.96. First
some are not defined in std:: and second, when using this manipulators
on streams, they give strange results. A small test-programm to show
it:
#include <cstdlib>
#include <iostream>
int main(int argc, char **argv)
{
//std::cout << std::fixed << std::showpoint << 0.123456789 << std::endl;
std::cout << std::ios::fixed << std::ios::showpoint << 0.123456789 << std::endl;
exit(EXIT_SUCCESS);
}
Compiling and running this programm gives the following result:
~$ ./a.out
40962560.123457
~$
Anyone got an idea whats going wrong here ?
Thanks in advance for your help.
Darius.
there seems to be a problem with manipulators in g++/gcc-2.96. First
some are not defined in std:: and second, when using this manipulators
on streams, they give strange results. A small test-programm to show
it:
#include <cstdlib>
#include <iostream>
int main(int argc, char **argv)
{
//std::cout << std::fixed << std::showpoint << 0.123456789 << std::endl;
std::cout << std::ios::fixed << std::ios::showpoint << 0.123456789 << std::endl;
exit(EXIT_SUCCESS);
}
Compiling and running this programm gives the following result:
~$ ./a.out
40962560.123457
~$
Anyone got an idea whats going wrong here ?
Thanks in advance for your help.
Darius.