How to add your knowledge

Operators

    An operator is a set of characters that represent an action in a statement or expression. An expression is a sequence of operators and operands that specifies a computation of a value.

    Operator Characters

    The following ASCII characters or character sequences represent operators.

     .  *  +  -  /  ^  <  =  >  <>  <=  >=  AND  OR  NOT

    Operator Expressions

    There are two kind of operators: unary and binary.

    • Unary operators require one operand and use prefix notation (for example, x).
    • Binary operators require two operands and use infix notation (for example, x + y).
    NoteWith the exception of relational operators, which always result in Boolean, the type of the expression depends on the operand(s).