Java Math Ceiling function
I have been using the ceiling function Math.ceil() but the result is not what I think it should be. I get the ceiling and floor functions giving the same result. Math.ceil(47/2) returns 23.0 when I think it should be 24.0. The floor function Math.floor(47/2) also returns 23.0, which is correct. How do I get the proper result from the ceiling function?

