Sign in Join
Wiki copytemporary

Dec/fr: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Dec/fr

OldNewLine
1+Dec(décrément) [[Procedure/fr|procédure]] en programmation pascal qui vous permet facilement de soustraire 1 (ou une autre valeur) depuis une [[Variable/fr|variable]].
2+
3+Par exemple, en utilisant la procédure Dec(décrément), vous pouvez diminuer de 1 la variable nommée a comme cela :
4+
5+``` pascal
6+ dec( a );
7+```
8+
9+Si vous voulez diminuer de 2 (ou d'une autre valeur) :
10+
11+``` pascal
12+ dec( a, 2 );
13+```
14+
15+La procédure Dec est incluse dans l'[[Unit/fr|unité]] [[System/fr|System]].
16+
17+## Voir aussi
18+
19+- Lien vers la documentation de la RTL : [[doc:rtl/system/dec.html|dec]]
20+- [[Inc/fr|Inc]] - Accroît la valeur d'une variable entière.
21+- Lien vers la documentation RTL : [[doc:/rtl/system/pred.html|pred]] - Retourne l'élément précédent pour un type ordinal.
22+- Instruction [[For/fr|For]] control_variable := start_point [[Downto/fr|Downto]] end_point [[Do/fr|Do]].
23+
24+---
25+*From the Free Pascal wiki, page "Dec/fr", as it stood on 2020-02-12 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history