没有钱的地图浮动呢? [英] does money map to float well?
本文介绍了没有钱的地图浮动呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
做的SQL数据类型的钱映射到C#浮?
does the sql data type money map to c# float?
推荐答案
没有...它映射到小数
。如果列允许空,它映射到可空<十进制>
No...it maps to a decimal
. If the column allows null, it maps to Nullable<Decimal>
.
浮动
不够精确用于货币计算。你会失去/获得金钱所有的地方。
float
isn't precise enough to be used for monetary calculations. You'd be losing/gaining money all over the place.
这篇关于没有钱的地图浮动呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文