Re: float
| Newsgroups | org.kernel.vger.linux-c-programming |
|---|---|
| Message-ID | <cone.1262973646.709094.2988.1000@eeekiste> |
Hi,
work for me.
cat >test.c <<END
#include <stdio.h>
int main(){
float i=1.34;
printf("%f\n",i);
return 0;
}
END
gcc -o test test.c && ./test
output:
1.340000
phoenixxz writes:
> float i=1.34;
> printf("%f",i);
>
>
> ->> 0
> why?
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html