RE: [jexl] How to use math functions with JEXL

2020-04-20 Thread Greenberg, Gary
8 PM To: Commons Users List Subject: Re: [jexl] How to use math functions with JEXL Hi, Did you import the Math library? import java.lang.Math; Joakim søn. 19. apr. 2020, 07:21 skrev Greenberg, Gary : > I am trying to evaluate an expression that beside simple arithmetic > need to calcul

Re: [jexl] How to use math functions with JEXL

2020-04-19 Thread swapnil vaidya
You will have to register math as name space with JexlContext https://commons.apache.org/proper/commons-jexl/apidocs/org/apache/commons/jexl3/package-summary.html Regards, Swapnil On Sun, Apr 19, 2020 at 10:51 AM Greenberg, Gary wrote: > I am trying to evaluate an expression that beside

Re: [jexl] How to use math functions with JEXL

2020-04-19 Thread Joakim Knudsen
Hi, Did you import the Math library? import java.lang.Math; Joakim søn. 19. apr. 2020, 07:21 skrev Greenberg, Gary : > I am trying to evaluate an expression that beside simple arithmetic need > to calculate square root. > > I tried sqrt(), Math.sqrt() and java.lang.Math.sqrt and nothing