How can I use printf in C to display the full length of a double.
Consider
int main(){ double x = 0.00000000000001; printf("x: %f \n", x); } The result I get is "i: 0.000000", however from what I read %f is the correct format specifier and doubles should have 15-17 significant figures therefore I don't understand why I am getting a rounded result. I have also tried things like %15f and %lf.
I am using Ubuntu if that helps.