I have a double (23.46)
And using the methods Math.ceil and Math.floor and parsing my double to these methods, I get the same value returned to me, which is 23...
When I run
System.out.println(Math.ceil(23.46)); System.out.println(Math.ceil(15.01));
I get
24.0 16.0
Isn't that what you want?