Answers for "double to float in c"

C
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

How to Convert double to int in C

double a = 12.34;
int b = a ;
//b = 12 not 12.34
Posted by: Guest on October-22-2020

Code answers related to "C"

Browse Popular Code Answers by Language