PIC24FJ1024GA610 using XC16 V1.36b the following code char tok1[]="41.645746"; float mins; int result=sscanf(tok1, "%f", &mins); printf("LAT %s result %d %f\n", tok1, result, (double) mins);
givesLAT 41.645746 result 1 4164.574219..
↧