M
Matthias Kluwe
Hi!
My problem looks like this:
#include <locale>
#include <iostream>
int main(int argc, char* argv[])
{
std::locale::global( std::locale( "deu" ) );
std::cout.imbue( std::locale() );
std::cout << 1000.4 << " " << 0.4 << std::endl;
return 0;
}
This is MS VC++ 7.1 here (this explains the "deu" locale).
Output is:
1,000.4 0,4
Now, this is confusing! I really expected
1.000,4 0,4
in german locale.
Any suggestions?
Regards,
M. Kluwe
My problem looks like this:
#include <locale>
#include <iostream>
int main(int argc, char* argv[])
{
std::locale::global( std::locale( "deu" ) );
std::cout.imbue( std::locale() );
std::cout << 1000.4 << " " << 0.4 << std::endl;
return 0;
}
This is MS VC++ 7.1 here (this explains the "deu" locale).
Output is:
1,000.4 0,4
Now, this is confusing! I really expected
1.000,4 0,4
in german locale.
Any suggestions?
Regards,
M. Kluwe