I'm curious:
If you do a printf("%f", number);
what is the precision of the statement? I.e. How many decimal places will show up? Is this compiler dependent?
The ANSI C standard, in section 7.19.6.1, says this about the f format specifier:
If the precision is missing, 6 digits are given
The default precision for %f
is 6 digits (see ISO C99 specification, 7.19.6.1/7).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With