我在这里想念什么?
select cast ( ( cast (100 * 39 as decimal ) / 41) as decimal(5,2))
结果为 95.12
但
declare @percent decimal
set @percent = cast ( ( cast (100 * 39 as decimal ) / 41) as decimal(5,2))
select @percent
结果为 95
两个 2 小数点发生了什么?如何将它们放回我的变量中?