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.

MULTIPLY (MU)<br />

MULTIPLY (MU)<br />

Syntax<br />

Examples<br />

<strong>Reference</strong>s<br />

The MULTIPLY; command multiplies the value of a numeric data item by that of a second<br />

numeric data item, and stores the result in the second data item; or in a third data item, if<br />

one is explicitly given.<br />

The GIVING; and ROUNDED; command options may be applied in conjunction with the<br />

MULTIPLY; command.<br />

The System Data item GLB.STATUS is not updated to ***** by the MULTIPLY; command.<br />

Use the GLB.STATUS; command (in LDA, the GS; command) to test for arithmetic<br />

overflow.<br />

DD DDD DDD DDDDDDDD <br />

DDBDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDBDDDDBDDDDDDDDDDDDDDBDDD4<br />

3 3 3 3<br />

@DD DD DDY @DD DDY<br />

numeric data 1<br />

A data item or literal to be multiplied.<br />

numeric data 2<br />

A data item or literal to be multiplied. This data item will contain the result if GIVING; is<br />

not specified. A literal is therefore valid only if the GIVING; command option is used.<br />

GIVING; numeric data 3<br />

The GIVING; command option directs the result to the specified data item. The GIVING;<br />

command option must be on the same line as the MULTIPLY; command. GIV is a valid<br />

abbreviation for GIVING. Thenumeric data 3 item cannot be a literal.<br />

ROUNDED;<br />

Rounds the result when truncation occurs.<br />

<br />

<br />

<br />

‘‘GLB.STATUS (GS)’’ for directing the value of GLB.STATUS to a data item.<br />

1-186 v

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

Saved successfully!

Ooh no, something went wrong!