A
absmienk
Very simpel question. I want to format the number 2.3 to be printed as
00002.30000.
I tried this:
printf("%05d",2.3);
which produces 00002
and this:
printf("%.5f",2.3);
which produces 2.30000
How can I combine these formats to print: 00002.30000? I already
tgried abount a zillion combinations, but no luck so far. Any help is
appreciated. Should be simple, right?
Cheers,
Ab
00002.30000.
I tried this:
printf("%05d",2.3);
which produces 00002
and this:
printf("%.5f",2.3);
which produces 2.30000
How can I combine these formats to print: 00002.30000? I already
tgried abount a zillion combinations, but no luck so far. Any help is
appreciated. Should be simple, right?
Cheers,
Ab