Published
- 1 min read
convert string to float c
The solution for this is noted below
convert string to float c
Solution
char myString = "6.88";
float x = atof(myString);
//x is now 6.88
Try other methods by searching on the site. That is if this doesn’t work