Hi guys, This a very simple c question.
Is there a way to format a float for printf so that it has xx SIGNIFICANT decimals?
So I'm not take about, say, %5.3 float, but if I had
float x=0.00001899383
how would i output 0.0000189 if i wanted UP TO the first three non-zero decimals?
thanks! I'm not stating at home this weekend so I don't have my C book around