Merge branch 'MDL-70966-master' of git://github.com/marinaglancy/moodle

This commit is contained in:
Sara Arjona
2021-03-03 09:30:41 +01:00
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -357,7 +357,7 @@ class qtype_numerical_answer extends question_answer {
public function __construct($id, $answer, $fraction, $feedback, $feedbackformat, $tolerance) {
parent::__construct($id, $answer, $fraction, $feedback, $feedbackformat);
$this->tolerance = abs($tolerance);
$this->tolerance = abs((float)$tolerance);
}
public function get_tolerance_interval() {