Differentiate ceil() and floor() function?
Advertisements
Question
Differentiate ceil() and floor() function?
Distinguish Between
Advertisements
Solution
|
Cell() |
Floor () |
| ceil() returns the smallest integer greater than or equal to the given value. | floor() returns the largest integer less than or equal to the given value. |
shaalaa.com
Introduction to Python Functions
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
A named block of code that is designed to do one specific job is called ______
A Function which calls itself is called as ______
While defining a function which of the following symbol is used.
Read the following statement and choose the correct statement.
In Python, you don’t have to mention the specific data types while defining the function.
Write a Python code to check whether a given year is a leap year or not.
What are the points to be noted while defining a function?
Write a Python code to find the L.C.M. of two numbers.
Explain the following built-in function.
id()
Explain the following built-in function.
chr()
Explain the following built-in function.
round()
