### Question 12.11

How can I print numbers with commas separating the thousands?
What about currency formatted numbers?

The routines in `<locale.h>` begin to provide some support for these operations, but there is no standard routine for doing either task. (The only thing `printf` does in response to a custom locale setting is to change its decimal-point character.)

References: ANSI Sec. 4.4
ISO Sec. 7.4
H&S Sec. 11.6 pp. 301-4

Read sequentially: prev next up top

This page by Steve Summit // Copyright 1995 // mail feedback