我有这个查询
(case when a.item_no >= '77000' and a.item_no <='77099' then
(op_drill + op_machine + op_ssd + op_freight + op_paint + ((actual_tooling * 1.2)))
else (op_drill + op_machine + op_ssd + ((op_drill + op_machine + op_ssd) *.27) + ((op_drill + op_machine + op_ssd + op_freight + (op_curforg *1.25) + ((op_drill + op_machine + op_ssd)*.27)) * .075)+
op_freight + (op_curforg *1.25) + op_paint)
end) as new_cost,
它返回 10.1201575
在 vb.net 我可以运行这个语句
dblNewCost = Math.Round(dblNewCost, 2, MidpointRounding.AwayFromZero)
返回 10.13
有没有办法复制这是sql server。我试过 round(num,2) 但没有正确显示