Thread
:
unexpected output value of floating type value
View Single Post
shyam_oec
Contributor
19Feb2008,01:48
#include<stdio.h>
main()
{
float i=65.8;
printf("i= %f",i);
}
with reference to the above code,
output of this prgogram is i=65.800003
as i expected to be i=65.800000
can u explain why?