how to convert a string of numbers to float type form int type in c code example
Example 1: convert string to float c
char myString = "6.88";
float x = atof(myString);
//x is now 6.88
Example 2: c float to int
# you can cast in c like so
float my_float= 1.446;
int my_int = (int) my_float;