📜  判断数字是否为整数的算法 - Java 代码示例

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

代码示例1
// The most basic thing you could do is check if x=floor(x).
  
  if (num != Math.floor(num)) { ... }