Connecting Tech Pros Worldwide Help | Site Map

Formatting a large number with a locale

 
LinkBack Thread Tools Search this Thread
  #1  
Old January 18th, 2008, 03:45 AM
Cory Nelson
Guest
 
Posts: n/a
Default 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.

  #2  
Old January 18th, 2008, 12:15 PM
James Kanze
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.