B
blackswift
hello,
program:
double x;
scanf("%lf", &x);
printf("%lf\n", x);
input:
3.14159265358979
output:
3.141593 (GCC 4.0.1 & visual c++ 6.0)
it seems that double has the same precision as float.
can some one tell me why ?
thanks in advance!!
program:
double x;
scanf("%lf", &x);
printf("%lf\n", x);
input:
3.14159265358979
output:
3.141593 (GCC 4.0.1 & visual c++ 6.0)
it seems that double has the same precision as float.
can some one tell me why ?
thanks in advance!!