在Sql Server与Excel中的乘法
所以我想多个数字在一起,我没有在SQL Server中得到相同的结果。
在Excel中:
0.4 * 27% = 0.1067
在Sql Server中
Select 0.4 * 0.27 = 0.108 Select Cast(0.4 as decimal(5,5)) * Cast(0.27 as decimal(5,5)) = 0.1080000000
我需要做什么,答案是与Excel相匹配。 我SQL Server返回我0.1067。