> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uflo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Numerical Questions

> Set a numerical answer, margin of error, and rounding.

A **Number** question asks students for one value, such as a speed or a concentration.
You set the correct value and can accept close answers with rounding or a margin.

## Set the Answer

**1. Choose the Type**

In the [question form](https://docs.uflo.io/instructors/assessments/manage-questions.md#add-a-question), set the question type to **Number**.

**2. Fill In the Fields**

![Number answer fields marked 1 to 4: the correct answer 3.142857, a margin of error of 0.02, Round to 2 decimal places selected, and the label Average speed in m/s.](https://mintcdn.com/uflo/SKdI6adHFChqjgkO/images/illustrations/screenshot/numerical-answer-fields/light.webp?fit=max\&auto=format\&n=SKdI6adHFChqjgkO\&q=85\&s=eb32d8e7ceb4e5bdc6521666a141ed34)

The answer is 22 ÷ 7, compared at two decimal places with a margin of 0.02.

1. **Correct answer:** your answer, in full and unrounded.
2. **Margin of error:** how far off an answer can be and still count.
3. **Precision:** **Exact Value**, or decimal places. Uflo rounds your answer and the student's to that many places, so extra digits don't cost credit.
4. **Label:** text beside the field, like the unit.

## What Students See

Students get a single number field. Beside it, Uflo shows your label, the precision, and the margin, if you set one.
Put the unit in the label, since the field only takes numbers.

![Student view of the cyclist question with the label Average speed in m/s (2 decimal places) \[margin: ± 0.02\] and 3.14 entered.](https://mintcdn.com/uflo/SKdI6adHFChqjgkO/images/illustrations/screenshot/numerical-student-view/light.webp?fit=max\&auto=format\&n=SKdI6adHFChqjgkO\&q=85\&s=cff1b6160da6c82a4c78fc37267bdfaa)

Uflo adds the precision and margin to your label.

## How Answers Are Graded

Uflo grades a Number question as soon as it's submitted and offers no partial credit.

Uflo checks each answer in two steps:

1. **Round:** With decimal places set, Uflo rounds your answer and the student's to that many places. With **Exact Value**, nothing is rounded.
2. **Compare:** The two values must match, or be within the margin if you set one.

### Example

A cyclist travels 22 metres in 7 seconds. You enter the answer **3.142857** and choose two decimal places, so Uflo compares at **3.14**.

![Two number lines show the expected answer rounding to 3.14. With exact matching, 3.144 is accepted and 3.154 is not. With a margin of 0.02, rounded values from 3.12 to 3.16 are accepted, so 3.164 is accepted and 3.174 is not.](https://mintcdn.com/uflo/6S8CbU5y25wZ0bMu/images/illustrations/conceptual/numerical-grading-instructor/light.webp?fit=max\&auto=format\&n=6S8CbU5y25wZ0bMu\&q=85\&s=ef1c4335ed61c8950fd2c141ddb250e1)

Both values are rounded first. A margin of error widens the accepted range.

> [tab] No Margin
>
> The student's answer must round to **3.14**.
>
> | Student's answer | Rounded | Result |
> | - | - | - |
> | 3.144 | 3.14 | Full points |
> | 3.154 | 3.15 | No points |

> [tab] Margin of 0.02
>
> The rounded answer must be within **0.02** of **3.14**, so 3.12 to 3.16.
>
> | Student's answer | Rounded | Result |
> | - | - | - |
> | 3.164 | 3.16 | Full points |
> | 3.174 | 3.17 | No points |

## Common Questions

> [accordion] Should I round the correct answer myself?
>
> No. Enter the full value. Uflo rounds it to the decimal places you choose, the same way it rounds the student's answer.

> [accordion] What if a student enters fewer decimal places?
>
> Their answer is compared as typed. With two decimal places, 3.1 doesn't match 3.14 unless the margin covers the gap.

> [accordion] Can students use scientific notation?
>
> Yes. Students can type a value like `6.02e23`.

> [accordion] Do I need a different type for a formula or several values?
>
> Yes. Use [Math Input](https://docs.uflo.io/instructors/assessments/questions/math-expressions.md) for an expression, or [Fill In The Blank](https://docs.uflo.io/instructors/assessments/questions/fill-in-the-blank.md) for several numbers. Neither works on [paper or LMS assessments](https://docs.uflo.io/instructors/assessments/question-types#paper-and-lms-assessments).

To see these questions as students do, read the [student guide to numerical questions](https://docs.uflo.io/students/assessments/questions/numerical.md).

> [card] [Next: Fill-in-the-Blank](https://docs.uflo.io/instructors/assessments/questions/fill-in-the-blank.md)
>
> Add blanks to your text and set the answer for each.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.