In the description it says the following functions are supported:
sin(), sinh(), arcsin(), asin(), arcsinh(), asinh(), cos(), cosh(), arccos(), acos(), arccosh(), acosh(), tan(), tanh(), arctan(), atan(), arctanh(), atanh(), pow(), exp(), sqrt(), abs(), ln(), log(), time(), ceil(), floor(), min(), max(), round()
But EvalMath.php only mentions:
'sin','sinh','arcsin','asin','arcsinh','asinh','cos','cosh','arccos','acos','arccosh','acosh','tan','tanh','arctan','atan','arctanh','atanh','sqrt','abs','ln','log'
So time(), ceil(), floor(), min(), max(), round() are not supported?
Issue fork field_expression-3000716
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
orkutmuratyilmazConfirmed, still accurate against 2.0.3. The underlying webit/eval-math library only registers
sin/sinh/arcsin/asin/arcsinh/asinh,cos/cosh/arccos/acos/arccosh/acosh,tan/tanh/arctan/atan/arctanh/atanh,sqrt,abs,lnandlogas built-ins, sotime(),ceil(),floor(),min(),max(),round(),pow()andexp()are not available. Power is covered by the^operator.min()/max()/round(x, n)cannot be added without patching the library, since built-in functions are limited to a single argument. Recategorising this as a documentation fix and correcting the supported-function list.As a workaround, user-defined functions do accept multiple arguments:
min(a,b) = (a+b-abs(a-b))/2max(a,b) = (a+b+abs(a-b))/2Comment #5
orkutmuratyilmazComment #6
orkutmuratyilmaz