ปลั๊กอินสำหรับไพธอนเป็นจำนวนเต็ม
(1.23).is_integer() # Returns false
w=ยังต้องบอกว่าทศนิยมในปลั๊กอินสำหรับไพธอน
i = 100
f = 1.23
print(type(i))
print(type(f))
# <class 'int'>
# <class 'float'>
วิธีตรวจดูทั้งจำนวนภาษาไพธอน
x = 1/3 # insert your number here
print(x - int(x) == 0) # True if x is a whole number, False if it has decimals.