basic.operators

Relational Operator/BASIC Program, Releases: AP and R83

Operators * ! & = # - + / ^ < > \ [ ] ( )

Description

Operators are reserved characters (and combinations of adjacent characters): * ! & = # - + / ^ < > \ [ ] ( ) and may be referenced individually by their respective symbol.

Expressions are formed by combining operators with other expressions.

When an expression is encountered as part of a Pick/BASIC program statement, it is evaluated by performing the operations specified by each of the operators on the adjacent operands.

Each operator has a precedence rating and, in any given expression, the highest precedence operation is performed first. (0 is the highest precedence and 8 is the lowest). If there are two or more operators with the same precedence or if an operator appears more than once, the leftmost operation is performed first.

See Also

Command Name Type Description
basic.^ Operator Mathematical operator (exponent).
basic.special.characters Reserved Character Reserved characters and their functions.
basic.arithmetic.expressions Definition Arithmetic expressions.
basic.precedence Definition Precedence of compound expressions.
basic.precision Statement Defines precision for calculations.
basic.lt Relational Operator 'less than' operator.
basic.exp Function Returns exponent from numeric expression.
basic.- Operator Mathematical operator (subtract). Also unary minus.
basic.= Assignment Operator Logical 'equal' operator or variable assignment.
basic.*= Assignment Operator Multiplies numeric expression and assigns to variable.
basic.+= Assignment Operator Adds numeric expression and assigns to variable.
basic.-= Assignment Operator Subtracts numeric expression and assigns to variable.
basic./= Assignment Operator Divides numeric expression and assigns to variable.
basic.le Relational Operator 'Less than or equal to' operator.
basic.! Logical Operator Logical 'or' operator and remark line indicator.
basic.+ Operator Arithmetic operator (add). Also unary plus.
basic., Relational Operator Used to separate parameters in functions and to print tabstops with the 'print' and 'crt' statements.
basic.*.comment Statement Remark line indicator.
basic.*.multiply Operator Arithmetic multiply operator

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.