double num=5.00000; if (num/1.00 == (int)num) printf("We have an integer!\n"); else printf("We don't have an integer!\n");
We have an integer!
C
double
Retrieved from http://hyacinth.byus.net/moniwiki/wiki.php/C/double이 정수인지 판별
last modified 2014-07-23 13:29:42