I would like to format prices in C++
I can use std::put_money but the problem is that my number format locale is different from my currency locale.
Say I want to format a price in GBP in French, if I set the locale to French, I get a euro sign. I need the decimal in the user's locale and the currency in the price locale.
I can do that in Java with NumberFormat coming from the decimal locale and then setting the currency I want on it.
Can this be done in C++?
Aucun commentaire:
Enregistrer un commentaire