Operators

The UCE uses the following operators:

Table 75 Operators

Operator

Category

Description

Overloads

-

Arithmetic

Negates one operand.

Overloaded for intervals, registers, and temporal scalars.

--

Arithmetic

Decrements.

 

()

Arithmetic

Parentheses

 

*

Arithmetic

Multiplies two operands.

Overloaded for intervals, registers, and temporal scalars.

/

Arithmetic

Divides two operands.

Overloaded for intervals, registers, and temporal scalars.

^

Arithmetic

Raises the first operand to the power of the second operand.

Overloaded for intervals, registers, and temporal scalars.

|

Arithmetic

Bitwise OR

 

+

Arithmetic

Adds two operands.

Overloaded for intervals, registers, and temporal scalars.

++

Arithmetic

Increment

 

!=

Comparison

Not equal. Returns 1.0 if the first operand is not equal to the second, otherwise 0.0.

Overloaded for intervals, registers and temporal scalars.

<

Comparison

Less than. Returns 1.0 if the first operand is less than the second, otherwise 0.0.

Overloaded for intervals, registers and temporal scalars.

<=

Comparison

Less than or equal. Returns 1.0 if the first operand is less than or equal to the second, otherwise 0.0.

Overloaded for intervals, registers and temporal scalars.

=

Comparison

Equal. Returns 1.0 if the first operand is equal to the second, else 0.0.

Overloaded for intervals, registers and temporal scalars.

>

Comparison

Greater than. Returns 1.0 if the first operand is greater than the second, otherwise 0.0.

Overloaded for intervals, registers and temporal scalars.

>=

Comparison

Greater than or equal. Returns 1.0 if the first operand is greater than or equal to the second, otherwise 0.0.

Overloaded for intervals, registers and temporal scalars.