mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Fixed tolerance problem, see bug 3225
This commit is contained in:
parent
c6a553710d
commit
5eae68aa2a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user