Hi,
I have set up a Sig Fig question as described on the Moodle Formulas documentation site, but whenever the question asks for 3 sig fig (nsf = 3), it marks it as incorrect even if the "Fill in correct response" button is used:
It works for nsf = 1 or 2.
Setting below are used.
Random variables: nsf={1:4:1}; x={10.001:99.999:0.001}; Global variables: a=nsf-1-floor(log10(abs(x))); xr=x==0?x:round(x*pow(10,a),0)*pow(10,-a); ans=xr;
Can anyone spot what I have done wrong?