From 5eae68aa2a499fbdaec7f7e5580e259fc122f553 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Mon, 27 Mar 2006 16:38:44 +0000 Subject: [PATCH] Fixed tolerance problem, see bug 3225 --- question/type/numerical/questiontype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5