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...