how to check if a number is float or integer in c code example
Example: check if float is integer c
float f = 4.5886;
if (f == (int)f)
printf("yes\n");
else printf("no\n");
float f = 4.5886;
if (f == (int)f)
printf("yes\n");
else printf("no\n");