Commas in 'c' printf

Michael Hipp Michael
Mon May 17 11:55:38 PDT 2004


It's been a long time since I programmed anything with financial-style 
numbers in c, but I thought there was a printf option to put commas in 
the numbers so you get 1,234,567 instead of the hard-to-read 1234567.

Is there a simple c way to do this or do I have to write it?

Michael



More information about the Linux-users mailing list