Q. Which function rounds a float to the nearest integer?

A
round()
B
floor()
C
ceil()
D
trunc()
Solution:

round() rounds a float, e.g., round(3.6) = 4.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!