Hi
i have written a program to check the precision of float and double values.
i read that the precision of float is 6 digits and double is 10.
but it is showing only 6 for both.
do we need to make any arrangement for the system to print the correct precission.
[Shark@localhost Fresh]$ gcc flt_dbl_prec.c
[Shark@localhost Fresh]$ ./a.out
34.345676
34.345678
[Shark@localhost Fresh]$ cat flt_dbl_prec.c
int main()
{
float f = 34.34567832;
double d= 34.3456783221;
printf("%f\n",f);
printf("%lf\n",d);
return 0;
}