eval

The eval command evaluate an expression and display the result.

Command Format

eval expression

where:

expression expression to evaluate

Functional description

The eval command evaluates an expression and displays the result. It can be used to make complex computations without applying the value to a command. The expression can be any valid expression including symbols, constants and other objects. The result is displayed in hexadecimal, octal and decimal.

Example:

PMON> eval 2+6*4
0x1a 032 26

Environment

The command uses the inbase and inalpha environment variables.

See Also

The expression, reference on how expressions are evaluated.