Datentypen

Aus Mhfe-wiki
Wechseln zu: Navigation, Suche
Bytes TINE TINE Code LabVIEW C VB6 VB6 Bereich
1 Byte - U8 char Byte - 0 - 255
2 short, INT16 513 I16 short integer % -32768 - 32767
2 - - U16 unsigned short - - 0 - 65535
4 - - I32 long long & -2147483648 - 2147483647
4 - - U32 unsigned long - - 0 - 4294967295
4 - - single float single ! -3,402823 E38 - 3,402823 E38
8 - - double double double # -1,797683134862315 E308 - 1,797683134862315 E308

int = 32 bit

short = 16 bit

Short is always 16 bits.

On a 16 bit machine (DOS, Win 3.11) int is 16 bits, long is 32 bits

On a 32 bit machine (Win XP, most Linux, Solaris, VxWorks) int is 32 bits, long is 32 bits

On a 64 bit machine (Vista, 64-bit Linux, Solaris) int is 32 bits, long is 64 bits