Skip Headers

# Mathematical Functions

Previous

Next

Mathematical functions are available through the `ExpressionMath` class. Mathematical function support in expressions is similar to the support provided by the Java class `java.lang.Math`. Example: Using Mathematical Functions in an Expression illustrates using the `abs` and `subtract` methods.

Using Mathematical Functions in an Expression

    ExpressionMath.abs(ExpressionMath.subtract(emp.get("salary"),emp.get("spouse")
      .get("salary")).greaterThan(10000)