数 [英] Number
本文介绍了数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
持有2位小数的数据应该是什么数据类型
(2.32,4.23,1.23,...)?
谢谢,
Miguel
Hello,
What should be the data type for holding numbers with 2 decimal places
(2.32, 4.23, 1.23, ...)?
Thanks,
Miguel
推荐答案
" shapper" < md ***** @ gmail.com写信息
news:11 ********************** @ d57g2000hsg。 googlegr oups.com ...
"shapper" <md*****@gmail.comwrote in message
news:11**********************@d57g2000hsg.googlegr oups.com...
持有2位小数的数字应该是什么数据类型
(2.32,4.23,1.23) ,...)?
What should be the data type for holding numbers with 2 decimal places
(2.32, 4.23, 1.23, ...)?
嗯,就字节数而言,最小的浮点数据类型是
float,它使用32个字节...
http://msdn2.microsoft.com/en -us / library / 9ahet949.aspx
2007年3月23日10:42:07 -0700,shapper写道:
On 23 Mar 2007 10:42:07 -0700, shapper wrote:
您好,
持有2位小数的数据应该是什么数据
(2.32,4.23,1.23, ...)?
谢谢,
Miguel
Hello,
What should be the data type for holding numbers with 2 decimal places
(2.32, 4.23, 1.23, ...)?
Thanks,
Miguel
就个人而言,我会使用小数漂浮
-
Bits.Bytes
http://bytes.thinkersroom.com
" Rad [Visual C#MVP]" < no **** @ nospam.com写信息
新闻:19 **************** @ thinkersroom.com ...
"Rad [Visual C# MVP]" <no****@nospam.comwrote in message
news:19****************@thinkersroom.com...
就个人而言,我会使用十进制浮点数
Personally I would use decimal over float
为什么?
Why?
这篇关于数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文