Section 5. Real-Time Tools
Function Description
LN(x) Returns the natural log of a number. (Note that LN or
LOG may be used to perform the same function.)
LOG(x) Returns the natural log of a number. (Note that LN or
LOG may be used to perform the same function.)
LOG10(x) Returns the logarithm base 10 of a number.
(x)MOD(y) Performs a modulo divide of two numbers.
PWR(x,y) Raises constant x to the power of y.
RND Generates a random number.
ROUND(x,y) Rounds a number to a higher or lower number.
SGN(x) Used to find the sign value of a number (–1, 0, or 1).
SIN(x) Returns the sine of an angle.
SINH(x) Returns the hyperbolic sine of a number.
SQR(x) Returns the square root of a number.
TAN(x) Returns the tangent of an angle.
TANH(x) Returns the hyperbolic tangent of a number.
5.2.1.4.6 Logical Functions
The following functions perform logical operations.
Function Description
(x)AND(y) Performs a logical conjunction on two numbers.
(x)EQV(y) Performs a logical equivalence on two numbers.
IIF(x,y,z) Evaluates an expression (x) and returns one value if true
(y), a different value if false (z).
(x)IMP(y) Performs a logical implication on two numbers.
NOT(x) Performs a logical negation on a number.
(x)OR(y) Performs a logical disjunction on two numbers.
SelectSwitch Iterates through the set of predicates and values in the
order in which these are specified in its arguments list.
It will return the value associated with the first predicate
that specifies a non-zero integer value. If no asserting
predicate can be found, the function will return the
default_value.
(x)XOR(y) Performs a logical exclusion on two numbers.
5-49