check if float is integer c

Solutions on MaxInterview for check if float is integer c by the best coders in the world

showing results for - "check if float is integer c"
Alienor
16 May 2016
1float f = 4.5886;
2if (f == (int)f)
3     printf("yes\n");
4else printf("no\n");
5