Answers for "long int vs float in C"

0

check if float is integer c

float f = 4.5886;
if (f == (int)f)
     printf("yes\n");
else printf("no\n");
Posted by: Guest on May-10-2021

Browse Popular Code Answers by Language