Check out example codes for "convert string to float c". It will help you in understanding the concepts better.

Code Example 1

char myString = "6.88";
float x = atof(myString);
//x is now 6.88

Learn ReactJs, React Native from akashmittal.com