Thousands separator in printf?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Thousands separator in printf?

alan01346
I'm not dyslexic but I have trouble looking at big numbers like 10
digits and telling which is bigger.  So I Googled and with most GCC
versions with a working locale you put something like %'u in a printf.
I also saw mention of a SATSEP macro, but I'm not getting anything to
work.  I know I could write a formatting function, I just wondered if
there's an easier way.  And I'm counting bytes, not dollars. :)

--
Credit is the root of all evil.  - AB1JX