PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Simple question on formatting

Consider the code below:

_stprintf(str, TEXT("%i"), number);

where number is equal to 10000. How do I format my string such that it outputs "10,000" (with commas) instead?

Thanks! :)
See GetNumberFormat.

Dan East
Thanks a lot Dan!