What is the difference between Ceil and Floor Functions? - ProProfs Discuss
Topics
Products
Follow Us:

What is the difference between Ceil and Floor Functions?

Asked by S. Barnes, Last updated: Jun 12, 2020

+ Answer
Request

1 Answer

D. Nichols

D. Nichols

Answered May 25, 2020

When you hear the terms “ceil” and “floor,” you may assume that this is for the parts of the home or other establishments, but these are terms that are commonly used in Java. Ceil is a type of method that will allow you to make the nearest integer go up or down depending on what you want.

This can often be used in doing math. The floor is something that you can use when you want to know the largest double data type. If you want to understand simpler, the floor is always going to be the integer that is greater than n while ceil is going to be the smallest integer as compared to n.

 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.