About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Feb 11, 2025
CLEM contains a number of commonly used numeric functions.
Function | Result | Description |
---|---|---|
–
|
Number | Used to negate NUM. Returns the corresponding number with the opposite sign. |
+
|
Number | Returns the sum of NUM1 and NUM2. |
–
|
Number | Returns the value of NUM2 subtracted from NUM1. |
*
|
Number | Returns the value of NUM1 multiplied by NUM2. |
/
|
Number | Returns the value of NUM1 divided by NUM2. |
|
Number | Used to perform integer division. Returns the value of INT1 divided by INT2. |
|
Number | Returns the remainder of INT1 divided by INT2. For example, . |
|
Number | Returns BASE raised to the power POWER, where either may be any number (except
that BASE must not be zero if POWER is zero of any type other than integer 0). If
POWER is an integer, the computation is performed by successively multiplying powers of
BASE. Thus, if BASE is an integer, the result will be an integer. If POWER is
integer 0, the result is always a 1 of the same type as BASE. Otherwise, if POWER is
not an integer, the result is computed as . |
|
Number | Returns the absolute value of NUM, which is always a number of the same type. |
|
Real | Returns e raised to the power NUM, where e is the base of natural logarithms. |
|
Real | Returns the fractional part of NUM, defined as
. |
|
Integer | Truncates its argument to an integer. It returns the integer of the same sign as NUM
and with the largest magnitude such that . |
|
Real | Returns the natural (base e) logarithm of NUM, which must not be a zero of any kind. |
|
Real | Returns the base 10 logarithm of NUM, which must not be a zero of any kind. This
function is defined as . |
|
Number | Used to negate NUM. Returns the corresponding number with the opposite sign. |
|
Integer | Used to round NUM to an integer by taking ) if
NUM is positive or if NUM is negative. |
|
Number | Used to determine the sign of NUM. This operation returns –1, 0, or 1 if NUM is an integer. If NUM is a real, it returns –1.0, 0.0, or 1.0, depending on whether NUM is negative, zero, or positive. |
|
Real | Returns the square root of NUM. NUM must be positive. |
|
Number | Returns the sum of values from a list of numeric fields or null if all of the field values are null. |
|
Number | Returns the mean value from a list of numeric fields or null if all of the field values are null. |
|
Number | Returns the standard deviation from a list of numeric fields or null if all of the field values are null. |
Was the topic helpful?
0/1000