WeBWorK Main Forum

Student answer marked incorrect, then correct

Re: Student answer marked incorrect, then correct

by Darwyn Cook -
Number of replies: 0
We are having the same issue again. I just updated webwork to run version 2.10. This time the problem involved was a real number, so the points picked should not have been an issue. The code involved is

$r = Real(sprintf("%0.2f",random(0.06, 0.13, 0.01)));
$rate = sprintf("%.0f",100*$r);
$double = Real(int(72/$rate + 0.5));

Making $r a Real and then treating like a regular perl variable may not be the way to go?

ANS($double->cmp());

is the answer checker that failed, but only in one reported case.