short -> 2 Byte -> -32768 ~ 32767
int -> 4 Byte -> -2147483648 ~ 2147483647
long -> 4 Byte -> -2147483648 ~ 2147483647
float -> 4 Byte -> 1.2*10-38~3.4*10+38 //單精確浮點數,有效位數7位數
double-> 8 Byte -> 2.2*10-308~1.8*10+308 //單精確浮點數,有效位數7位數
unsigned short -> 2 Byte -> 0 ~ 65535
unsigned int -> 4 Byte -> 0~4294967295
unsigned long -> 4 Byte -> 0~4294967295
沒有留言:
張貼留言