From ff166d11570a5c6ec7f855ca08abdbfde4294151 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 28 May 2012 12:37:50 +0800 Subject: [PATCH] Revert "MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php" Breaking unit tests. This reverts commit 4be0947bbe63f32f38aa1698d4bbb9068d7a9dc9. --- lib/evalmath/evalmath.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/evalmath/evalmath.class.php b/lib/evalmath/evalmath.class.php index 894de5d05e2..aa5539fe186 100644 --- a/lib/evalmath/evalmath.class.php +++ b/lib/evalmath/evalmath.class.php @@ -107,13 +107,13 @@ class EvalMath { 'sin','sinh','arcsin','asin','arcsinh','asinh', 'cos','cosh','arccos','acos','arccosh','acosh', 'tan','tanh','arctan','atan','arctanh','atanh', - 'sqrt','abs','ln','log','exp','floor','ceil'); + 'sqrt','abs','ln','log','exp','floor','ceil','round'); var $fc = array( // calc functions emulation 'average'=>array(-1), 'max'=>array(-1), 'min'=>array(-1), 'mod'=>array(2), 'pi'=>array(0), 'power'=>array(2), 'round'=>array(1, 2), 'sum'=>array(-1), 'rand_int'=>array(2), - 'rand_float'=>array(0), 'round'=>array(2)); + 'rand_float'=>array(0)); var $allowimplicitmultiplication;