Allow setting the Margin of error in a numeric answer algorithmically

For algorithmically generated questions that have numeric answers with units it would be nice to be able to specify a Margin of error that is generated from the answer. That way it would be possible to require a minimal number of required digits, that is to allow students to answer with more digits than required without their answer being graded as wrong.


The help pages indicates, that this should be possible using the function lsu and the ? operator. It does not seem to work, though. Entering anything other than a number in the Margin of error field sets the Margin of error to 0.

  • Claus Christensen
  • Apr 3 2019
  • Planned
  • Attach files
  • Aron Pasieka commented
    9 May, 2019 03:00am

    Hi Claus.  This appears to be a problem with our input validation in the Question Designer.  I have created a bug report for this.