每次在寫Microchip的程式時,
總要查一下變數的資料型態,因此就乾脆貼在文章內
C18 Data Type
TYPE SIZE RANGE
char(1,2) 8 bits -128 127
signed char 8 bits -128 127
unsigned char 8 bits 0 255
int 16 bits -32,768 32,767
unsigned int 16 bits 0 65,535
short 16 bits -32,768 32,767
unsigned short 16 bits 0 65,535
short long 24 bits -8,388,608 8,388,607
unsigned short long 24 bits 0 16,777,215
long 32 bits -2,147,483,648 2,147,483,647
unsigned long 32 bits 0 4,294,967,295
float 32 bits 1.17549435 e-38 to 6.80564693 e+38
double 32 bits 1.17549435 e-38 to 6.80564693 e+38