You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/teacher/reference/response_area_components/NumericUnits.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,34 @@
2
2
3
3
Provides two input fields with `Number` and `Units` placeholder texts. This area will also display its associated grading function (as seen in the screenshot below).
4
4
5
-
**Note** this area will display how the user's response was interpred using the `interp_string` field provided in the feedback object returned by that function (if it exists).
5
+
**Note:** this area will display how the user's response was interpred using the `interp_string` field provided in the feedback object returned by that function (if it exists).
6
6
7
7
## Component Parameters
8
-
### `pre_response_text` (optional)
9
-
Text block to be displayed to the left of the input field. Markdown and LaTeX are allowed following the usual syntax.
For example, if the reference answer is 100 m, the following answers will also be accepted:
16
+
17
+
* 0.1 km
18
+
* 10000 cm
19
+
* 10^5 mm
20
+
### Tolerances
21
+
Tolerances can be added to your answer using the `atol (number)` and `rtol (number)` fields, which denote absolute and relative tolerances respectively.
10
22
11
23
## Response Structure
12
24
*This is how the react component will structure the user's input to the Grading Gateway, when they press the check button.*
13
25
14
26
In this case, the response is a single string which features the user's response to both fields separated by a space.
0 commit comments