const eightAndAHalf = 8.5; Number.isInteger(eightAndAHalf); // false Number.isInteger(Math.floor(eightAndAHalf)); // true