UBI EasyCoder 201 IIE Bedienerhandbuch Seite 243

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 332
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 331 332

Kommentare zu diesen Handbüchern

Keine Kommentare