15
Como testar se um duplo é um número inteiro
É possível fazer isso? double variable; variable = 5; /* the below should return true, since 5 is an int. if variable were to equal 5.7, then it would return false. */ if(variable == int) { //do stuff } Eu sei o código provavelmente não vai qualquer coisa assim, mas …