Re: Inserting Commas into Those Big Numbers

From: dean gaudet
Date: Thu Jan 19 2006 - 21:06:56 EST


On Wed, 18 Jan 2006, Jeff V. Merkey wrote:

> If anyone cares to make the kernel output more readable, heres a code snippet
> that formats any text string with numbers (decimal) to
> insert commas. I am too old and going blind looking at computer screen with
> these long numbers. If useful to anyone, enjoy.

you know i wish C99 had mandated support for numbers like 1_000_000 or
0x0123_4567_89ab_cdef. (not sure if Ada originated this style, but that's
where i first saw it.)

-dean
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/