02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter —Program Instructions<br />

SGN<br />

Purpose 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 PRINT SGN(A%)<br />

RUN<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 />

8 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

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

Saved successfully!

Ooh no, something went wrong!