Exaustive and complete explanation and example. Thank you.
I used it in a function to return the formatted string: (thanks also to www.cplusplus.com)
std::string FormatNumber(long Number){
Currency const qty(Number);
std::stringstream Convert;
std::locale MyLocale( std::locale(), new GermanPunct() ); // Create customized locale
Convert.imbue(MyLocale); // Imbue the custom locale to the stringstream
Convert << std::showbase << std::fixed << qty; // Use some manipulators
return Convert.str(); // Give the result to the string
}
benjaminwolsey.de
Primary links
Secondary links
Sprachen
Suchen
Ohloh Profile
Benutzeranmeldung