Formatting a large number with a locale



 DEVELOP > c-Plus-Plus > Formatting a large number with a locale

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "Cory Nelson"
Date: 17 Jan 2008 10:43:29 PM
Object: Formatting a large number with a locale
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.
.

User: "James Kanze"

Title: Re: Formatting a large number with a locale 18 Jan 2008 07:05:24 AM
On Jan 18, 5:43 am, Cory Nelson <phro...@gmail.com> wrote:

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=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34
.


  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER