Answers for "c construct string with float"

5

convert string to float c

char myString = "6.88";
float x = atof(myString);
//x is now 6.88
Posted by: Guest on February-20-2020

Browse Popular Code Answers by Language