Formatting a large number with a locale

C

Cory Nelson

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.
 
J

James Kanze

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,233
Latest member
AlyssaCrai

Latest Threads

Top