Sign in Join
Wiki copytemporary

Int32/fr

Deutsch · English · Français

Plage de valeurs: -2147483648 .. 2147483647.
Occupation en mémoire: 4 octets soit 32 Bits.
Propriétés:
Un champ de donnée de type de donnée Int32 ne prend que des valeurs entières signées de sa plage de valeurs.
Tout autre valeur conduit à une erreur de compilation, le programme ne sera donc pas créé. Définition d'un tableau de type Int32:

pascal
 Var 
   i32: int32;

Exemples d'affectations avec des valeurs correctes :

pascal
   i32 := -2147483648;
   i32 := 0;
   i32 := 2147483647;

Exemples d'affectations avec des valeurs incorrectes :

pascal
   i32 := '-2147483648';
   i32 := '0';
   i32 := '2147483647';

Ces dernières instructions tentent d'affecter directement des valeurs de type String, ce que le compilateur refusera.


From the Free Pascal wiki, page "Int32/fr", as it stood on 2020-02-18 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.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.