Answers for "c double to 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
2

what is float in c

float: It is used to store decimal numbers (numbers with floating point value) with single precision. double: It is used to store decimal numbers (numbers with floating point value) with double precision.
Posted by: Guest on March-03-2021

Browse Popular Code Answers by Language