Réponse acceptée !
Types entiers
génériques pour l'implémentation 32 bits de Delphi
Type Etendue Format
Integer -2147483648..2147483647 32 bits signéCardinal 0..4294967295 32 bits non signé
Les types
fondamentauxsignés sont Shortint, Smallint, Longint, Int64, Byte, Word et Longword.
Types entiers fondamentaux
Type Etendue Format
Shortint -128..127 8 bits signé
Smallint -32768..32767 16 bits signé
Longint -2147483648..2147483647 32 bits signéInt64 -2^63..2^63-1 64 bits signé
Byte 0..255 8 bits non signé
Word 0..65535 16 bits non signé
Longword 0..4294967295 32 bits non signé
voila la difference... mais ont utilise rarement, trés rarement LongInt et LongWord ... on utilise plus souvent Integer, Cardinal et DWORD.
en gros, pour un Delphi 32Bits
Integer = LongInt
Cardinal = LongWord // DoubleWord // DWord
pour un Delphi 16bits et TurboPascal et Pascal
Integer = SmallInt
Cardinal = Word
pour un Delpih 64bits
Integer = int64
Cardinal = {Word64 // QuadWord}
pour un Delphi 128 bits
Integer = {Int128}
Cardinal = {Word128 // OctoWord}
Croc (click me)