Remote-processing CAMBASIC Manuel d'utilisateur Page 63

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 208
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 62
Commands - 30
DEC & DECF
Statements
SYNTAX: DEC variable
DEC F var iable
PURPOSE: To decrement a variable by one (DEC) or four (DEC F).
REMARK S: 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
Vue de la page 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 207 208

Commentaires sur ces manuels

Pas de commentaire