Sign in Join
Wiki copytemporary

QWord/fr: what changed

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

Title: QWord/fr

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