Remote Processing Coorporation RPC-320 Dokumentacja Strona 58

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 186
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 57
Commands - 28
DEC & DECF
Statements
SYNTAX: DEC variable
DECF variable
PURPOSE: To decrement a variable by one (DEC) or four (DECF).
REMARKS: This is a fast way to decrement a simple or array variable.
A = A–1 slow
DEC A fast
A = A–4 slow
DECF A fast
DEC executes more than twice as fast as the statement it replaces. Valid for simple and array
variables.
RELATED: INC, INCF
EXAMPLE: 10 A = 4
20 DEC A
30 PRINT A
40 DECF A
50 PRINT A
RUN
3
–1
ERROR: <Expected variable> – if parameter is not a variable
Przeglądanie stron 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 185 186

Komentarze do niniejszej Instrukcji

Brak uwag