[LON-CAPA-users] Custom vs. Numeric Responses

Mills, Douglas G dmills at illinois.edu
Tue Feb 28 15:37:58 EST 2012

Hi All,

I just want to be sure I’m not overlooking something... I want to work with student-inputted values so expect to use a customresponse for that. However, I’d also like to verify that they’re using the correct number of significant figures, which is trivial with the numericresponse type.  The numericresponse works for my purposes in that I know that the student input values in this case should be 50 +/- 2 so setting the tolerance to 4% takes care of it. However, what I’m not getting with numeric response which I do with customresponse, is the ability to echo the student’s answer back to them by setting “displayanswer” to be equal to their submission.

Bottom Line: I’d like to either check significant figures in my customresponse OR display the student’s answer back to them in numericresponse.

I have been working on checking number of sig figs in PERL for the customresponse and am getting close, but related question there — is there  a way when returning SIG_FAIL to specify whether there are too many or too few significant figures?  Seems to by default report “too few” and I don’t know how to specify it should report “too many”.

Thank so all in advance.


Douglas Mills
Director of Instructional Technologies
Department of Chemistry
University of Illinois
dmills at illinois.edu
(217) 244-5739

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-users/attachments/20120228/5a30858b/attachment.html>

More information about the LON-CAPA-users mailing list