From 4be0947bbe63f32f38aa1698d4bbb9068d7a9dc9 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Sun, 20 May 2012 11:17:44 +0700 Subject: [PATCH] MDL-29173 grade: altered the definiton of round() in /lib/evalmath/evalmath.class.php --- 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 aa5539fe186..894de5d05e2 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','round'); + 'sqrt','abs','ln','log','exp','floor','ceil'); 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)); + 'rand_float'=>array(0), 'round'=>array(2)); var $allowimplicitmultiplication; -- 2.43.0