@openexam/numeric
v0.1.0
Published
Numeric-answer widget + paramGenerators for OpenExam (spec 0.2).
Readme
@openexam/numeric
Numeric-answer widget for OpenExam, plus three paramGenerator
hooks (int, prime, pick) usable from any 0.2 assignment's
frontmatter params: block.
---
spec: openexam/0.2
type: assignment
id: square-area
title: Square area
addons:
"@openexam/numeric": "^0"
params:
side: { gen: "@openexam/numeric#int", min: 2, max: 9 }
---
A square has side {{ side }}. What is its area?
::: response numeric { tolerance=0 }
{{ side * side }}
:::The widget is the third @openexam/* addon (after mc and
truefalse) and the first to register paramGenerator hooks
(per ADR-008).
License
Apache-2.0. See LICENSE and the canonical ../../LICENSE at the repository root.
