What is the difference between ceil() and floor().

Questions by sujatham   answers by sujatham

Showing Answers 1 - 1 of 1 Answers

static double ceil(double d) 

The method ceil() returns the smallest double value that is greater than or equal to the argument d, and is equal to a mathematical integer.

static double floor(double d) 

The method floor() returns the largest double value that is less than or equal to the argument d, and is equal to a mathematical integer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions