Business Rules 10.7 | webMethods Business Rules Web Help | webMethods Business Rules Reference | Functions | Summary of Math Functions
 
Summary of Math Functions
 
long abs(long value)
double abs(long double)
double acos(double val)
double asin(double val)
double atan(double val)
double ceil(double val)
double cos(double val)
double cosh(double val)
double degreesToRadians(double angdeg)
double exp(double val)
double floor(double val)
double log(double val)
long max(long val1, long val2)
double max(double val1, double val2)
long min(long val1, long val2)
double min(double val1, double val2)
long mod(long val1, long val2)
double mod(double val1, double val2)
double pi()
double pow(double base, double exponent)
double radiansToDegrees(double angrad)
long round(double val)
double round(double val, int scale)
double round(double val, int scale, int roundingMethod)
double sin(double val)
double sinh(double val)
double tan(double val)
double tanh(double val)
webMethods Rules Development provides predefined math functions as listed in the following table:
Function
Returns
Description
Integer
Returns the absolute value of the specified long value.
Integer
Returns the absolute value of the specified double value.
Integer
Returns the arc cosine of the specified double value.
Integer
Returns the arc sine of the specified double value.
Integer
Returns the arc tangent of the specified double value.
Integer
Returns the smallest integer that is greater than or equal to the specified double value.
Integer
Returns the trigonometric cosine of the specified angle.
Integer
Returns the hyperbolic cosine of the specified double value.
Integer
Returns an approximately equivalent angle measured in radians for the specified angle measured in degrees.
Integer
Returns Euler's number e raised to the power of the specified double value.
Integer
Returns the largest integer that is less than or equal to the specified double value.
Integer
Returns the natural logarithm (base e) of the specified double value.
Integer
Returns the larger of the two specified long values. If the specified values are equal, then the result is that same value.
Integer
Returns the larger of the two specified double values. If the specified values are equal, then the result is that same value.
Integer
Returns the lesser of the two specified long values. If the specified values are equal, then the result is that same value.
Integer
Returns the lesser of the two specified double values. If the specified values are equal, then the result is that same value.
Integer
Returns the remainder of two long values. The remainder is obtained when dividing val1 by val2.
Integer
Returns the remainder of two double values. The remainder is obtained when dividing val1 by val2.
Integer
Returns the value of pi to 15 decimal places.
Integer
Returns baseexponent or the value of the base argument raised to the power of the exponent argument.
Integer
Returns an approximately equivalent angle measured in degrees for the specified angle measured in radians.
Integer
Returns the closest long integer to the specified double argument, with ties rounding up.
Integer
Rounds the given value to the specified number of decimal places.
Integer
Rounds the given value to the specified number of decimal places. The value is rounded using the given method which is any method defined in java.math.BigDecimal.
Integer
Returns the trigonometric sine of the specified angle.
Integer
Returns the hyperbolic sine of the specified double value.
Integer
Returns the trigonometric tangent of the specified angle.
Integer
Returns the hyperbolic tangent of the specified double value.