[Icc-avr] atof-Difference string <> float
Richard Man
richard-lists at imagecraft.com
Thu Aug 7 21:15:35 PDT 2008
As replied to you directly already:
float has only about 7 decimal digits of precision, so 1234.123 is as
precise as it can get. The rest is mostly noise.
At 04:37 PM 8/7/2008, Rainer Dehnert wrote:
>Hi,
>
>I've differences converting string to float(double).
>I'm using ICCAVR V7.18 Pro with Win XP.
>
>The source:
>void main(void) {
>double lat;
>unsigned char string[] = "1234.123456";
>
>//init_devices();
>
// richard (This email is for mailing lists. To reach me directly,
please use richard at imagecraft.com)
More information about the Icc-avr
mailing list