ปลั๊กอินสำหรับไพธอนบนพื้น
import math
x = 3.86356
math.floor(x)
#Returns: 3
math.ceil(x)
#Returns: 4
ปลั๊กอินสำหรับไพธอนแบ่งพื้น
In Python 3.0
5 // 2 floor division will return 2.
5 / 2 floating point division will return 2.5
พื้นดิวิชั่นเป็นภาษาไพธอน 3
# the double '//' is used for floor division
result = x//y
mpmath พื้นดิวิชั่นของจำนวนเชิงซ้อนเป็นภาษาไพธอน
we can't do floor division and modulo of complex numbers