How can get currency format from double values? The following snippet works fine with integers while it doesn't with doubles?!
#include <locale.h>
#include <iostream>
#include <iomanip>
#include <sstream>
using namespace std;
int main(void)
{
ostringstream stream;
stream.imbue(std::locale(""));
stream << setprecision(3) <<194663.33;
string stringValue = stream.str();
cout << stringValue;
return 0;
}