Click here to Skip to main content
15,886,810 members
Articles / Desktop Programming / MFC

XFormatNumber - A function to format numbers with commas

Rate me:
Please Sign up or sign in to vote.
4.59/5 (10 votes)
25 Jun 2002CPOL1 min read 72K   1K   22  
An easy-to-use function that provides locale-correct comma-formatting of numbers

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Hans Dietrich Software
United States United States
I attended St. Michael's College of the University of Toronto, with the intention of becoming a priest. A friend in the University's Computer Science Department got me interested in programming, and I have been hooked ever since.

Recently, I have moved to Los Angeles where I am doing consulting and development work.

For consulting and custom software development, please see www.hdsoft.org.






Comments and Discussions