difference between math.ceil and math.floor
Answers
Answered by
31
The Math.floor and Math.ceil methods give you the nearest integer up or down.
The method Math.floor returns the largest Double data type that is less than or equal to the argument and is equal to mathematical integer.
The method Math.ceil returns the smallest Double data type that is greater than or equal to the argument and is equal to mathematical integer.
P.S: Read the documentation before asking here!
Answered by
12
HERE IS YOUR ANSWER ♤
PLS MARK MY ANSWER THE BRAINLIEST ONE.
Attachments:
Similar questions
The method Math.ceil returns the smallest Double data type that is greater than or equal to the argument and is equal to mathematical integer.