Q. Which function returns the largest integer less than or equal to a number?

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

floor() from math module returns the floor, e.g., math.floor(3.7) = 3.

Entri Contact Image

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