next up previous
Next: Intrinsic Character Operations Up: Expressions and Assignment Previous: Assignment

 

Intrinsic Numeric Operations

The following operators are valid for numeric expressions,

All the above operators can be applied to numeric literals, constants, scalar and array objects with the only restriction being that the RHS of the exponentiation operator must be scalar.

Example,

     a = b - c
     f = -3*6/5

Note that operators have a predefined precedence, which defines the order that they are evaluated in, (see Section 12.7).

Now try this question gif


next up previous
Next: Intrinsic Character Operations Up: Expressions and Assignment Previous: Assignment

Adam Marshall ©University of Liverpool, 1996
Wed Oct 9 17:57:29 BST 1996