Why not use `int(float_val) != float_val`?