edit-

So I understand that there is no solution to this problem. Does anyone know a function in C that returns the 31-38 index from the array(str)?
---------------------------------------------------------------------------------------------------------------------------------------------

Hey i have a problem with strtof function and i cant find a solution to the problem on the Internet, Can anyone help please?

here a simple function:

```
float getCord(int placeOnArray, char str[80]){
   char str2[7];
   for (int i=placeOnArray ;i<placeOnArray+7;i++){
      str2[i-placeOnArray]=str[i];
   }
   float f1;
   f1=strtof(str2,NULL);
   return f1;

    }

```

the input- str= ATOM 1 N ASN A 1 -4.890 -12.296 -15.280 1.00 30.36 N 
, place on array=31 

The desired result: -4.890
,the returned result: -4.88999987