how to check if a number is a whole number nodejs code example Example: js check if number has decimals num % 1 != 0