Simple Data Types

Key Word Type Size in bytes Range
char character 1 -128 to 127
short integer 2 -32768 to 32767
long integer 4 -2,147,483,648 to 2,147,483,647
int integer 2 or 4 * same as short (2) or long (4)
unsigned char character 1 0 to 255
unsigned short integer 2 0 to 65535
unsigned long integer 4 0 to 4,294,967,295
unsigned int integer 2 or 4 * same as unsigned short (2) or unsigned long (4)
float floating point 4 10e-37 to 10e38, 6 significant digits
double floating point 8 10e-307 to 10e308, 15 significant digits

* depends on the operating system.