积极答复者
float类型 保存到数据库里,就得好长,怎么办

问题
答案
-
SQL中的float对应C#中的decimal,而C#的float本身就是精度不高的。
你也可以使用C#中(double),但是SQL中numeric类型(指定长度和小数点位数)。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report- 已标记为答案 永远的小六 2013年5月23日 13:36
全部回复
-
SQL中的float对应C#中的decimal,而C#的float本身就是精度不高的。
你也可以使用C#中(double),但是SQL中numeric类型(指定长度和小数点位数)。
If you think one reply solves your problem, please mark it as An Answer, if you think someone's reply helps you, please mark it as a Proposed Answer
Help by clicking:
Click here to donate your rice to the poor
Click to Donate
Click to feed Dogs & Cats
Found any spamming-senders? Please report at: Spam Report- 已标记为答案 永远的小六 2013年5月23日 13:36