【转】C# int.MaxValue,double.MaxValue,float.MaxValue

short.MaxValue:32767
short.MinValue:-32768

int.MaxValue:2147483647
int.MinValue:-2147483648

long.MaxValue:9223372036854775807
long.MinValue:-9223372036854775808

 

float.Epsilon:1.401298E-45
float.MaxValue:3.402823E+38
float.MinValue:-3.402823E+38
float.NaN:非数字
float.NegativeInfinity:负无穷大
float.PositiveInfinity:正无穷大

double.Epsilon:4.94065645841247E-324
double.MaxValue:1.79769313486232E+308
double.MinValue:-1.79769313486232E+308
double.NaN:非数字
double.NegativeInfinity:负无穷大
double.PositiveInfinity:正无穷大

string.Empty:""

bool.FalseString:False
bool.TrueString:True

char.MaxValue:''
char.MinValue:''

byte.MaxValue:255
byte.MinValue:0

ushort.MaxValue:65535
ushort.MinValue:0

uint.MaxValue:4294967295
uint.MinValue:0

ulong.MaxValue:18446744073709551615
ulong.MinValue:0

来自:http://www.foxcup.com/Article/CSharp_var_type.aspx

posted @ 2010-07-09 15:24  睿德泽林  阅读(6408)  评论(0编辑  收藏  举报