From: rich@mulvey.com (Rich Mulvey) Subject: Re: Bug in atof? Date: Sat, 28 Aug 1993 22:02:10 EDT
quantum@stein1.u.washington.edu (Tsung-lung Li) writes:
>
>
> Hello,
>
> If I am doing right in the following program, I have found a bug in "atof".
>
> #include <math.h>
> #include <stdio.h>
>
> main()
> {
> static char st[80] = {'1', 'E', '+', '4'};
> float x;
>
> x = atof( st );
> printf( "%s %f\n", st, x );
> }
>
> Execution results:
> 1E+4 1.000000
>