SyntaxFix
Write A Post
Hire A Developer
Questions
The simplest way is to test whether a number is an integer is int(x) == x. Otherwise, what David Heffernan said.
int(x) == x