About Lesson
floor():-
Floor() method returns the largest whole number less than or equal to integer.
Example:-
|
import math print(math.floor(35.3)) print(math.floor(-35.50)) print(math.floor(10.0))
|
Output 35 -36 10
|
Important Notice:
Floor() method returns the largest whole number less than or equal to integer.
Example:-
|
import math print(math.floor(35.3)) print(math.floor(-35.50)) print(math.floor(10.0))
|
Output 35 -36 10
|