I am learning the language C. I am trying to print a set of numbers in the datatype "double" but it is only printing 7 digits like "float".
For example:
double temp = 23.3456789112345;
printf("%1f\n", temp);
Outputs this:
23.345679
However, once i changed where the decimal is like the following:
double temp = 2334567.89112345;
printf("%1f\n", temp);
It outputed this:
2334567.891123
SO it almost worked. Instead of outputing only 7 digits, it printed 13 digits. But I thought the datatype "double" could print 15-16 digits .