C#基元类型取值范围对照表

byte   无符号 8 为整数,值为0-255;

sbyte   有符号8位整数,-128~127;

short   有符号16位整数,范围在-32768~32767

ushort   无符号16位整数 0--32767

int   有符号 32 位整数,-2147483648~2147483647

uint   无符号32位整数,范围在0--2147483647

long   有符号 64位整数,-922372036854775808~~922372036854775807

ulong   无符号 64位整数,0-922372036854775807;

bool   true false;

char   16位 Unicode 字符

decimal   有符号128位数据,有28到29位有效位,范围大概在+-1.0x10-28 ~~ +-7.9x10+28

double   64位浮点值,有15到16位的小树,范围在+-5.0X10-324 ~1.7x10+308

float   32位浮点值 7位小树,范围在+-1.5x10-45   ~~~~ +-3.4x10+38

原文地址:https://www.cnblogs.com/sunzhenyong/p/3809433.html