It seems simple problem for programmers but for me its complicated.
I am using CodeVision compiler. I am writing code in c language. I am trying to print float value with up to 10 digits precision. I have tried using "%.10f" but it is printing only six precision digits, even with "%.f". i know "%.f" will print six precision digits.
I want to print that "c" value. I have tried to print using the fallowing statement.Code:float c, xc=50800.287F, w, f=125000.0F; w=2*3.14*f; c=1/w*xc; /which is equal to =1/39878000000=2.507e-11.
But from the above statement i getting value like "0.000000".Code:printf("capacitance value is : %.12f", c);
Please suggest how can i print that C value.
I tried to use "double variable but my CodeVision is not supporting double variables. help me please.