Connecting Tech Pros Worldwide Forums | Help | Site Map

Formatting a large number with a locale

Cory Nelson
Guest
 
Posts: n/a
#1: Jan 18 '08
I have some very large numbers that don't fit in any of the standard
(or non-standard) builtins. I can make these base-10 ascii easily,
but I would like to use a locale for nice l10n support. Is there any
solution to this? I see the std::num_put facet but it only takes
builtins.

James Kanze
Guest
 
Posts: n/a
#2: Jan 18 '08

re: Formatting a large number with a locale


On Jan 18, 5:43 am, Cory Nelson <phro...@gmail.comwrote:
Quote:
I have some very large numbers that don't fit in any of the standard
(or non-standard) builtins. I can make these base-10 ascii easily,
but I would like to use a locale for nice l10n support. Is there any
solution to this? I see the std::num_put facet but it only takes
builtins.
There's also a num_punct facet which num_put uses. You can use
it.

--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34
Closed Thread