Under the number question's configuration, toggle on "Answer must be a whole number." This will prevent someone from being able to type in decimal.
Click on the question in the editor, then click the toggle in the configuration panel to the right.

Toggle on "Answer must be a whole number."