convert string to float c
snippet in c

convert string to float c

user1714

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