Python

math.floor()

math.floor()에 대해서 설명한다.

math.floor() 란?

math.floor()는 바닥함수이다.

import math

math.floor(3.7) # 결과 : 3
math.floor(-4.2) # 결과 : -5

왼쪽에서 오른쪽으로 올라가는 계단이 있다고 생각하면 된다.

Related records

읽던 위치가 있어요.
확대 이미지