---
title: How do I prevent users from entering decimals in a number field? | Paperform Help Center | Paperform
description: Toggle on "Answer must be a whole number" in the configuration for the number question.
url: "https://paperform.co/help/articles/can-i-prevent-users-from-entering-decimals-in-a-number-field"
type: static
generatedAt: "2026-04-04T00:42:01.231Z"
---

How do I prevent users from entering decimals in a number field?
### Field Types
        ![(iframe)](https://www.loom.com/embed/e35629500e9b4bdf8d1776a4c2080aed?sid=ff90aefa-4131-4918-ad88-09491dec4b5d?hide_owner=true&hide_share=true&hide_title=true&hideEmbedTopBar=true)

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.

![Screenshot of a Number question from the editor.  Answer must be a whole number is highlighted.](https://img.paperform.co/fetch/f_auto,w_1400/https://d3gw2uv1ch7vdq.cloudfront.net/img/answer-must-be-whole-number.png)

Toggle on "Answer must be a whole number."

### Related Articles
  [How do I add a number question to my form?  On a blank line, type "/number" and select "Number" from the popup menu, or click "Add questions" and select "Number" from the question dropdown.](/help/articles/how-do-i-add-a-number-field-question-to-my-form/)
[How can I make a number field be formatted like a price?  Configure the question, then set the number input formatting to "currency."](/help/articles/how-can-i-set-the-currency-in-a-number-field/)