Would StrLocalizeNumber work?

----- Original Message -----
From: "Thomas Maeder" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, October 18, 2002 10:15 AM
Subject: Re: Putting commas into numbers


> Mike McCollister wrote:
> > Are are any built-in Palm routines that will take an integer, such as
12345,
> > and return a string with commas (or whatever the 1000s separator is) in
the
> > proper palce, such as 12,345 (or 12.345)?  I am about to write my own
and just
> > wanted to know if such a routine is already written.
>
> This may come a little late, but:
>
> If you end up having to write it on your own, the "politically correct"
way
> to do it in C++ would be to create your own numpunct facet class that
> defines the grouping and separating like you want it, create a locale with
> such a fact and imbue that locale into a string stream.
>
> C.f. http://makeashorterlink.com/?G59E12C22
>
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to