Friday, April 29, 2011

Data types in C#


KeywordsClassRange
boolSytem.BooleanTrue/False
byteSytem.Byte0 to 255
sbyteSytem.SByte-128 to 127
shortSytem.Int16-32768 to 32767
ushortSytem.Uint160 to 65535
intSytem.Int32-2,147,483,648 to 2,147,483,647
uintSytem.Uint320 to 4,294,967,295
longSytem.Int64-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
ulongSytem.Uint640 to 18,446,744,073,709,551,615
decimalSytem.Decimal-79,228,162,514,264,337,593,543,950,335 to 79,228,162,514,264,337,593,543,950,335
doubleSytem.Double-1.79769313486232e308 to 1.79769313486232e308
floatSytem.Single-3.402823e38 to 3.402823e38
charSytem.Char0 to 65535

Next

No comments:

Post a Comment