All,
For a decimal value of 1 billion being retrieved from SQL Server where the associated datatype is Numeric (28,10), I am running into Conversion overflow exception. From MSDN:
The .NET Framework decimal data type allows a maximum of 28 significant digits
I need to clarify if the digits here refer to the binary form or decimal form itself?
该限制由十进制表示形式强加,并且28个有效数字表示28个十进制数字。
在SQL Server for Numeric和Decimal数据类型中,此定义最多28个十进制数字(精度),在小数点右侧(小数位数)的右边最多10个小数位。
最多接受28位数字的十进制数字。
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.