Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用小数来存储经度和纬度。在 asp.net mvc4 表单中没有任何配置,我得到这样的 mssql db 值(丢失最后一位)
48.42920
我应该把它保存为
48.429201
问题是如何格式化十进制以满足这个要求?
谢谢
里面mssql field应该设置为decimal(N,6). 6是精度
mssql field
decimal(N,6).