Is there any method or quick way to check whether a number is an Integer (belongs to Z field) in Java?
I thought of maybe subtracting it from the rounded number, but
One example more :)
double a = 1.00 if(floor(a) == a) { // a is an integer } else { //a is not an integer. }
In this example, ceil can be used and have the exact same effect.