UBI EasyCoder 201 IIE Manuale delle Istruzioni Pagina 243

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 332
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 242
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 241
Chapter 2 Program Instructions
SGN
Field of Application
Function returning the sign (positive, zero, or negative) of a speci ed
numeric expression.
Syntax SGN(<nexp>)
<nexp> is the numeric expression from which the sign will be
returned.
Remarks
The sign will be returned in this form:
SGN(<nexp>) = -1 (negative)
SGN(<nexp>) = 0 (zero)
SGN(<nexp>) = 1 (positive)
Examples
Positive numeric expression:
10 A%=(5+5)
20 PRINT SGN(A%)
RUN
yields:
1
Negative numeric expression:
10 A%=(5-10)
20 PRINT SGN(A%)
RUN
yields:
-1
Zero numeric expression:
10 A%=(5-5)
20 PRINT SGN(A%)
RUN
yields:
0
Vedere la pagina 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 331 332

Commenti su questo manuale

Nessun commento