我进行计算,我没有获得我期望的答案。 我失去了计算方法的一些比额表。
Calc is: 651/1000 * - 413.72063274 = - 269.33213191 (to 8 d.p)
联合国 我这样做:
declare @var numeric(28,8)
declare @a numeric(28,8)
declare @b numeric(28,8)
set @var = -413.72063274
set @a = 651.00000000
set @b = 1000.00000000
select CAST((@a/@b) * @var as numeric(28,8)) as result_1
, CAST(CAST(@a as numeric(28,8))
/CAST(@b as numeric(28,8)) as numeric(28,8))
*CAST(@var as numeric (28,8)) as result_2
结果是
result_1: -269.33213200 (correct to 6dp)
result_2 : -269.332132 (correct to 6dp)
我如何回来:-269.33213191(更正为8dp)?