How to test if a double is an integer

Or you could use the modulo operator:

(d % 1) == 0

Leave a Comment