Skip to content

Latest commit

 

History

History
executable file
·
37 lines (27 loc) · 978 Bytes

README.md

File metadata and controls

executable file
·
37 lines (27 loc) · 978 Bytes

Usage

The correct answer is provided inside the element.

<ed-num>
-24
</ed-num>

You can pass input type number attributes like min, max, step.

<ed-num min="0" max="10" step="0.01">
3.14
</ed-num>

By default, the score is evaluated by percentage of error, but you can set attribute value eval to exact to change this behavior.

<ed-num eval="exact">
3.14
</ed-num>

If the answer is 0 the score is also 0 or 100% as no error can be calculated.

<ed-num>
0
</ed-num>

Credits

This component is inspired by the numerical input problem used in Open edx.