Advertisements
Advertisements
Question
Explain the following built-in function.
round()
Answer in Brief
Advertisements
Solution
| Function | Description | Syntax | Example |
| round() | Returns the nearest integer to its input. 1. The first argument (number) is used to specify the value to be rounded. |
round (number [,ndigits]) |
|
shaalaa.com
Introduction to Python Functions
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
Which function is called anonymous un-named function?
While defining a function which of the following symbol is used.
Pick the correct one to execute the given statement successfully.
if ______ : print(x, " is a leap year")
Write the different types of functions.
How to set the limit for recursive function? Give an example.
Differentiate ceil() and floor() 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()
