SyntaxFix
Write A Post
Hire A Developer
Questions
There are any number of ways to do this. For example:
double d = 5.0; bool isInt = d == (int)d;
You can also use modulo.
double d = 5.0; bool isInt = d % 1 == 0;