« COBOL/Opérations arithmétiques » : différence entre les versions
Contenu supprimé Contenu ajouté
m Robot : Remplacement de texte automatisé (-(<\/?)source +\1syntaxhighlight) |
|||
Ligne 13 :
{{Définition
| contenu =
<
MOVE x TO var1 var2 ...
</syntaxhighlight>
}}
Ligne 27 :
{{définition
| contenu =
<
COMPUTE {identificateur [ROUNDED]} ... = expression arithmétique
[SIZE ERROR instructions]
[END-COMPUTE].
</syntaxhighlight>
}}
Ligne 49 :
{{Définition
| contenu =
<
ADD a1 a2 ... TO {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-ADD].
</syntaxhighlight>
}}
Ligne 65 :
{{Définition
| contenu =
<
SUBTRACT a1 a2 ... FROM {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-SUBTRACT].
</syntaxhighlight>
}}
Ligne 81 :
{{Définition
| contenu =
<
MULTIPLY x BY {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-MULTIPLY].
</syntaxhighlight>
}}
Ligne 93 :
{{Définition
| contenu =
<
MULTIPLY x BY y GIVING {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-MULTIPLY].
</syntaxhighlight>
}}
Ligne 109 :
{{Définition
| contenu =
<
DIVIDE diviseur INTO {identificateur [ROUNDED]} ...
[SIZE ERROR instructions]
[END-DIVIDE].
</syntaxhighlight>
}}
Ligne 123 :
{{Définition
| contenu =
<
DIVIDE x BY y GIVING {identificateur [ROUNDED]} ...
[REMAINDER reste]
[SIZE ERROR instructions]
[END-DIVIDE].
</syntaxhighlight>
}}
Ligne 142 :
{{exemple
| contenu =
<
000001 IDENTIFICATION DIVISION.
000002 PROGRAM-ID. calculatrice.
Ligne 174 :
000030 STOP RUN.
000031 END PROGRAM calculatrice.
</syntaxhighlight>
}}
|