5

Printing float values in C

view full story
linux-howto

http://www.unix.com – Hi, I have small problem to print float value in the fallowing code Code: float Cx, W,f=250000, Cr=92.00,pi=3.14; W=2*pi*f; Cx = 1/W.Cr;  //Cx value will be come around like 7.07E-9. printf("capacitance value: %.10f",Cx); I am trying to print Cx value using above code but it was not printing like that, the value i am getting when i tried to print Cx value using above code is 7.077140 . I am getting of 6 digit precision value only. How to get 10 digit precision value or how to print like this 7.07E-9. Thanks in advance. (HowTos)