SQL服务器向下舍入0.5步

时间:2015-07-17 10:03:37

标签: sql sql-server tsql

我想用0.5步舍入小数值:

示例:

 declare @value = 6.7

round (@value, 1, 2) as new

所有值应为:

if 6.7 should return 6.5
if 6.9 should return 6.5
if 6.4 should return 6 etc.

0 个答案:

没有答案