Given a double variable named sizeValue and sizeValue contains something other than 0, what is the most efficient way to determine that sizeValue contains a value that is an integer?
Currently i’m using
sizeValue % 1 == 0
any other faster ways?
give a try to Math.ceil:
EDIT
I’ve done some benchmarks with the following methods:
isInt1is the faster of them (on a sunjre 1.6)