Sounds simple, yes.

But it isn't.

You could try:
http://www.gnu.org/manual/glibc/html_node/Formatting-Numbers.html

strfmon() turns numbers to money.
Probably not quite what you want.



> -----Original Message-----
> From: Adrian Allen [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 30, 2003 10:34 PM
> To: [email protected]
> Subject: Adding Commas 
> 
> 
> 
> This is real simple what I want to do, I want to add commas 
> to the printf_to_char messages like for example "Hassan drops 
> 53876 silver coins" would show up as: "Hassan drops 53,876 
> silver coins" It would make it 100,000 times easier for 
> people reading numbers in the billions. Anyway my question is 
> does anyone have any idea how to place a comma after every 
> third number 
> to make that work. Thanks for any help you can give.
> 
> 
> 
> 
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> -- 
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
> 

Reply via email to