Answers for "c language check a float if it is a int"

C
1

check if float is integer c

float f = 4.5886;
if (f == (int)f)
     printf("yesn");
else printf("non");
Posted by: Guest on May-10-2021

Code answers related to "c language check a float if it is a int"

Code answers related to "C"

Browse Popular Code Answers by Language