18.08.2013 Views

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

LINC Programming Reference Manual - Public Support Login - Unisys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

COMPUTE (COMP) and COMPUTE.FROM (CMP, CF)<br />

Examples<br />

operator<br />

An arithmetic operator symbol value from the following table.<br />

Delimit all operators with spaces.<br />

COMPUTE; Example<br />

Symbol Arithmetic Operator<br />

+ Addition<br />

- Subtraction<br />

* Multiplication<br />

/ Division<br />

** Exponentiation<br />

In the following result, the total price and tax price are calculated.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

COMPUTE.FROM; Example<br />

Three signed numeric data items AMOUNT, AMOUNT1, and TOTAL are declared in an<br />

Event. A Setup Data item named SDTWO has a value of 2.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

1-66 v

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!