Outputting correct values

user01 Reply 9 years 27 weeks ago
I have trouble with outputting correct values. When %f is used, the output has a maximum of 6 decimal points. If %g is used, the output has a maximum of 7 decimal points. What type does the variable have to be?
blacksianj Reply 9 years 27 weeks ago
By adding a number to '%f' or '%g' expression(please refer to the book), you can print out more than 7 decimal point.