we see that Math.floor(double a) turns the provided double into the equivalent double with no decimal component..
Math.floor(10.99999) returns 10.0 (as a double)
which you can then convert to an integer simply by casting:
int myInt = (int) Math.floor(10.99999);
//myInt is equal to 10
similarly, the round() function can be looked up.. round rounds 10.0 to 10.49999... down to 10.0, and 10.5 to 10.999999... up to 11.0
there is another related operation, ceiling, that rounds any double up to the next whole double with no decimal component, so 10.49999, becomes 11.0
It is symantically equivalent to :
Math.floor(double a +1)