Int32/fr: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Int32/fr
| Old | New | Line | |
|---|---|---|---|
| 1 | + | \ | |
| 2 | + | Plage de valeurs: -2147483648 .. 2147483647.\ | |
| 3 | + | Occupation en mémoire: 4 octets soit 32 Bits.\ | |
| 4 | + | Propriétés:\ | |
| 5 | + | Un [[Data field/fr|champ de donnée]] de [[Data type/fr|type de donnée]] **Int32** ne prend que des valeurs entières signées de sa plage de valeurs.\ | |
| 6 | + | Tout autre valeur conduit à une erreur de compilation, le programme ne sera donc pas créé. Définition d'un tableau de type Int32: | |
| 7 | + | ||
| 8 | + | ``` pascal | |
| 9 | + | Var | |
| 10 | + | i32: int32; | |
| 11 | + | ``` | |
| 12 | + | ||
| 13 | + | Exemples d'affectations avec des valeurs correctes : | |
| 14 | + | ||
| 15 | + | ``` pascal | |
| 16 | + | i32 := -2147483648; | |
| 17 | + | i32 := 0; | |
| 18 | + | i32 := 2147483647; | |
| 19 | + | ``` | |
| 20 | + | ||
| 21 | + | Exemples d'affectations avec des valeurs incorrectes : | |
| 22 | + | ||
| 23 | + | ``` pascal | |
| 24 | + | i32 := '-2147483648'; | |
| 25 | + | i32 := '0'; | |
| 26 | + | i32 := '2147483647'; | |
| 27 | + | ``` | |
| 28 | + | ||
| 29 | + | Ces dernières instructions tentent d'affecter directement des valeurs de type String, ce que le compilateur refusera. | |
| 30 | + | ||
| 31 | + | --- | |
| 32 | + | *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](/wiki-contact).* |
