Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Revert "MDL-29173 grade: altered the definiton of round() in /lib/eva…

…lmath/evalmath.class.php"

Breaking unit tests.

This reverts commit 4be0947.
  • Loading branch information...
commit 287451dcd45f46a1507e866b56311c17fbca9f23 1 parent 83ae05f
Dan Poltawski danpoltawski authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 lib/evalmath/evalmath.class.php
4 lib/evalmath/evalmath.class.php
@@ -107,13 +107,13 @@ class EvalMath {
107 107 'sin','sinh','arcsin','asin','arcsinh','asinh',
108 108 'cos','cosh','arccos','acos','arccosh','acosh',
109 109 'tan','tanh','arctan','atan','arctanh','atanh',
110   - 'sqrt','abs','ln','log','exp','floor','ceil');
  110 + 'sqrt','abs','ln','log','exp','floor','ceil','round');
111 111
112 112 var $fc = array( // calc functions emulation
113 113 'average'=>array(-1), 'max'=>array(-1), 'min'=>array(-1),
114 114 'mod'=>array(2), 'pi'=>array(0), 'power'=>array(2),
115 115 'round'=>array(1, 2), 'sum'=>array(-1), 'rand_int'=>array(2),
116   - 'rand_float'=>array(0), 'round'=>array(2));
  116 + 'rand_float'=>array(0));
117 117
118 118 var $allowimplicitmultiplication;
119 119

0 comments on commit 287451d

Please sign in to comment.
Something went wrong with that request. Please try again.