📌  相关文章
📜  检查浮点数是否为整数python代码示例

📅  最后修改于: 2022-03-11 14:46:50.786000             🧑  作者: Mango

代码示例4
x = 1/3  # insert your number here
print(x - int(x) == 0)  # True if x is a whole number, False if it has decimals.