math.floor() 란?
math.floor()는 바닥함수이다.
import math
math.floor(3.7) # 결과 : 3
math.floor(-4.2) # 결과 : -5
왼쪽에서 오른쪽으로 올라가는 계단이 있다고 생각하면 된다.
math.floor()는 바닥함수이다.
import math
math.floor(3.7) # 결과 : 3
math.floor(-4.2) # 결과 : -5
왼쪽에서 오른쪽으로 올라가는 계단이 있다고 생각하면 된다.