You should not check for exact equality to zero, as a floating point number usually only contains the closest possible approximation to the number that you assigned to it.
For example, the closest possible value to 42 that the type could represent might be something like 42.00000000000000662, which you still would want to count as an integer value.
Take the difference between the value and the rounded value, then take the absolute value of that (so that it's not negative) and compare to a small value:
if (Math.Abs(Math.Round(floatingPoint) - floatingPoint) < 0.000001) ...