作者fumizuki (蒙面加菲狮)
看板Visual_Basic
标题Re: [.NET] 请问资料型态中的double 跟decimal
时间Sun Apr 16 09:55:35 2006
VB.NET 资料型态
关键字 CLR 型别结构 资料长度
Boolean System.Boolean 2 Bytes
Byte System.Byte 1 Bytes
Char System.Char 2 Bytes
Date System.DateTime 8 Bytes
Decimal System.Decimal 16 Bytes
Double System.Double 8 Bytes
Integer System.Int32 4 Bytes
Long System.Int64 8 Bytes
Object System.Object (类别) 4 Bytes
Short System.Int16 2 Bytes
Single System.Single 4 Bytes
String System.String (类别)
User-Defined Type (继承自 System.ValurType)
资料数值范围
Boolean True 或 False。
Byte 0 至 255 (无正负号)。
Char 0 至 65535 (无正负号)。
Date 01/01/01 00:00:00 至 9999/12/31 23:59:59
Decimal 整数范围 0 至 +/-79,228,162,514,264,337,593,543,950,335
浮点数范围 0 至+/-7.9228162514264337593543950335 共 28 个小数位数
最小的非零值 +/-0.0000000000000000000000000001 (+/-1E-28)
Double 负值为 -1.79769313486231570E+308 至 -4.94065645841246544E-324
正值为 4.94065645841246544E-324 至 1.79769313486231570E+308。
Integer -2,147,483,648 至 2,147,483,647。
Long -9,223,372,036,854,775,808 至 9,223,372,036,854,775,807。
Short -32,768 至 32,767。
Single 负值为 -3.4028235E+38 至 -1.401298E-45
正值为 1.401298E-45 至 3.4028235E+38。
String 0 至大约二十亿个 Unicode 字元。(2,147,483,648)
Object、User-Defined Type 由实际储存资料决定其大小
参考 MSDN Library Online
资料型别摘要
http://msdn.microsoft.com/library/CHT/vblr7/html/vagrpdatatype.asp
不同语言的资料型别对照
http://tinyurl.com/al3tb
--
▃▅▇▆▄ ▆▂▃ `
逝去感情如何能留住,半点痴情遗留殊不易,██▅▇▄▃ ▇▃▂" .
█████████▃i ▁▄▇
更多凄凄惨惨的遭遇…………██▆▃ █▅▆▃ˍ▄*
◢ ▂█▄▇▅▂▌.
我不知道,王~八~蛋~~! ▂▆███ █▄▃ 。fumizuki。Check。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 210.58.156.43
1F:→ biox:感谢! :) 04/16 11:15
2F:推 wuoldcat:真是高手~ 04/16 14:50