From: gustav_delius Date: Mon, 27 Mar 2006 16:38:44 +0000 (+0000) Subject: Fixed tolerance problem, see bug 3225 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5eae68aa2a499fbdaec7f7e5580e259fc122f553;p=moodle.git Fixed tolerance problem, see bug 3225 --- diff --git a/question/type/numerical/questiontype.php b/question/type/numerical/questiontype.php index f3f12c4b3e..ec10b840b8 100644 --- a/question/type/numerical/questiontype.php +++ b/question/type/numerical/questiontype.php @@ -349,7 +349,7 @@ class question_numerical_qtype extends question_shortanswer_qtype { // We need to add a tiny fraction (0.00000000000000001) to make the // comparison work correctly. Otherwise seemingly equal values can yield // false. (fixes bug #3225) - $tolerance = (float)$answer->tolerance + 0.00000000000000001; + $tolerance = (float)$answer->tolerance + 0.0000000000001; switch ($answer->tolerancetype) { case '1': case 'relative': /// Recalculate the tolerance and fall through