Formatting large numbers (999,999,999)
Jeff Sullivan, x4482 MS 14-13
jsulliva at cvbnet.UUCP
Wed Apr 11 06:54:43 AEST 1990
Does anyone have a nice way to print out numbers with
the correct placement of commas?
For example:
2,147,483,648
instead of
2147483648 /* using printf("%10.0f",x); */
/* where x is a double. */
Thanks in advance,
Jeff Sullivan / Computervision/Prime \ {decvax|sun}!cvbnet!jsulliva
CADDS R&D / Bedford, MA 01730 \ jsulliva at cvbnet.prime.com
Jeff Sullivan / Computervision/Prime \ {decvax|linus|sun}!cvbnet!jsulliva
CADDS R&D / Bedford, MA 01730 \ jsulliva at cvbnet.prime.com
More information about the Comp.lang.c
mailing list