Konversi string menjadi float c
char myString = "6.88";
float x = atof(myString);
//x is now 6.88
Adventurous Albatross
char myString = "6.88";
float x = atof(myString);
//x is now 6.88
float percentage;
percentage = (float)number/total * 100;