select floor(@number)+case when @number-floor(@number)>=0.5 then 1 else 0.5 end
2008行,不知道2000行不 ------解决方案-------------------- select case ROUND(@t-0.1,0)-CAST(@t as int) when 0 then ROUND(@t-0.1,0)+0.5 else ROUND(@t,0) end ------解决方案--------------------