Computer Science, asked by shiv8001, 1 year ago

difference between math.ceil and math.floor​

Answers

Answered by chroventer
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!


jasminsipka1234: 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.
Answered by akkieshk
12

HERE IS YOUR ANSWER ♤

PLS MARK MY ANSWER THE BRAINLIEST ONE.

Attachments:
Similar questions