हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

Explain the following built-in function. round() - Computer Science

Advertisements
Advertisements

प्रश्न

Explain the following built-in function.

round()

संक्षेप में उत्तर

उत्तर

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])
X = 17.9 
y = 22.2 
Z = -18.3 
print ('x value is rounded to', round (x)) 
print ('y value is rounded to', round (y)) 
print ('Z value is rounded to', round (z))
shaalaa.com
Introduction to Python Functions
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 7: Python functions - Evaluation [पृष्ठ ११३]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
अध्याय 7 Python functions
Evaluation | Q 3. (c) | पृष्ठ ११३
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×