Examveda

What is the purpose of the round() function in Python?

A. To round up a number

B. To round down a number

C. To round a number to the nearest integer

D. To round a number to a specified number of decimal places

Answer: Option D

Solution (By Examveda Team)

The round() function rounds a number to a specified number of decimal places.

This Question Belongs to Python Program >> Data Types And Numeric Types

Join The Discussion

Related Questions on Data Types and Numeric Types