Hi
how can I use a number in a format, such as
n = 3;
m = 123;
and something like printf("%.nf", m);
---------
result should be 123.000
I tried with printf("%.%df\n",n,m); but never worked,any idea?
Thanks
Hi
how can I use a number in a format, such as
n = 3;
m = 123;
and something like printf("%.nf", m);
---------
result should be 123.000
I tried with printf("%.%df\n",n,m); but never worked,any idea?
Thanks
Don't laugh at me,I am just a SuperNewbie.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
thanks, I got it.
Don't laugh at me,I am just a SuperNewbie.