<input type="number" oninput="this.value = Math.round(this.value);"/>