Previous Topic: OverviewNext Topic: Evaluation Of Arithmetic Expressions


Syntax

Parameters

The unary minus operator. It reverses the sign of the operand that follows it.

arithmetic-function

For a list of arithmetic built-in functions, see Built-in Functions.

variable

A user-defined variable data field.

The named variable must contain a number and can be any of the following:

numeric-constant

A number.

system-supplied-data-field-name

See "System-supplied data field names" in Variable Data Fields

arithmetic-expression

An arithmetic expression. Use parentheses to control the order in which operations are to be performed.

+ – * /

The arithmetic operators:

Operator

What it does

+

Addition

Subtraction

*

Multiplication

/

Division

Syntax: Arithmetic-Expression

                          ┌─ + ─┐
                          ├─ - ─┤
                          ├─ * ─┤
     ┌────────────────────┴─ / ─┴───────────────────────┐
►►───▼──┬─────┬───┬─ arithmetic-function ─────────────┬─┴─────────────────────►◄
        └─ - ─┘   ├─ variable-name ───────────────────┤
                  ├─ numeric-constant ────────────────┤
                  ├─ system-supplied-data-field-name ─┤
                  └─ arithmetic-expression ───────────┘