Forums » Using AMC (english) »
Define options AMCnumericChoices as variables
Added by Javier G about 1 year ago
I would like to know if there is any way to define the option "exact"
in AMCnumericChoices as a variable calculated with fp package. T
tried the following but obviously it doesn't work:
\AMCnumericChoices{\solution}{digits=5,decimals=2,sign=true,borderwid
th=0pt,backgroundcol=lightgray,exact=0.05*{\solution},scoreexact=1}
Thank you in advance.
Replies (2)
RE: Define options AMCnumericChoices as variables - Added by Alexis Bienvenüe about 1 year ago
I think you have to compute 100*0.05*\solution
with fp
and pass the result.
Note that exact
should be an integer.
With digits=5,decimals=2
, numbers are written XXX.XX
Answers are considered as correct if abs(XXXXX-YYYYY)≤exact
, where YYY.YY is the correct value.
Exemple: if the correct value is 10.34 and exact=7
, 10.39 is a correct answer because abs(1034-1039)=5≤7.
RE: Define options AMCnumericChoices as variables - Added by Javier G about 1 year ago
Many thanks for your quick response| I had forgotten that "exact" option must be an integer
(1-2/2)