Example 1: js check if number has decimals num % 1 != 0 Example 2: how to know if a number has a decimal number js function hasDecimal (num) { return !
確定! 回上一頁