to detect if float integer 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");