17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SGN<br />

Chapter 2 Program Instructions<br />

Field of Application Function returning the sign (positive, zero or negative) of a specified<br />

numeric expression.<br />

Syntax SGN()<br />

is the numeric expression from which the sign will be returned.<br />

Remarks The sign will be returned in this form:<br />

SGN() = -1 (negative)<br />

SGN() = 0 (zero)<br />

SGN() = 1 (positive)<br />

Examples Positive numeric expression:<br />

10 A%=(5+5)<br />

20<br />

RUN<br />

PRINT SGN(A%)<br />

1<br />

Negative numeric expression:<br />

10 A%=(5-10)<br />

20 PRINT SGN(A%)<br />

RUN<br />

-1<br />

Zero numeric expression:<br />

10 A%=(5-5)<br />

20 PRINT SGN(A%)<br />

RUN<br />

0<br />

yields:<br />

yields:<br />

yields:<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 210

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

Saved successfully!

Ooh no, something went wrong!