Sign in Join
Wiki copytemporary

Longword/fr: what changed

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

Title: Longword/fr

OldNewLine
1+Plage de valeurs : 0 .. 4 294 967 295
2+
3+Occupation en mémoire : 4 octets soit 32 Bit
4+
5+Propriété: Un champ de donnée de type de donnée **Longword** ne peut recevoir que des valeurs entières positives de la plage indiquée. Tout autre valeur conduit à une erreur de compilation, le programme ne sera donc pas créé.
6+
7+Déclaration d'un champ de donnée de type Longword :
8+
9+``` pascal
10+ Var
11+ lw: Longword;
12+```
13+
14+Exemple d'affectations correctes :
15+
16+``` pascal
17+ lw := 0;
18+ lw := 255;
19+ lw := 65535;
20+ lw := 4294967295;
21+```
22+
23+Exemple d'affectations incorrectes :
24+
25+``` pascal
26+ lw := '0';
27+ lw := '255';
28+ lw := '65535';
29+ lw := '4294967295';
30+```
31+
32+Ces derniers exemples tentent d'affecter des valeurs littérales non entières (string) qui demandent une conversion explicite.
33+
34+---
35+*From the Free Pascal wiki, page "Longword/fr", as it stood on 2020-02-19 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