Mike McCollister wrote:
This may come a little late, but: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.
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/
