I have 2 fields and I need these to be a floating decimal point. I wonder what data type to use while I'm designing bottom-up Linq-to-SQL classes.
EG: one value is 1.427600, another value is 1765.030, both would be in the same property/column.
Use System.Decimal , if you require the accuracy.
Decimal will represent both your example values accurately.
为什么不使用浮点型或十进制类型?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.