Ok,
I'm working on a project and I need to write a method that takes an input number, divides by three and then returns the number that is the closest mathematical integer
above it. So a method that rounds up should be involved. I'm trying to
test out the Math.ceil and Math.floor methods but I'm confused.
7 / 3 is 2.333~
So I don't understand why both
AND
are returning 2.0. Shouldn't Math.ceil return 3.0?
What am I missing please?