SQL Server是圆形还是截断?

时间:2009-08-21 20:20:54

标签: sql-server math floating-point

假设我正在将64位浮点双插入DECIMAL(17,5)字段。值是否被舍入或截断?

1 个答案:

答案 0 :(得分:5)

圆了:

select cast(9.12345 as decimal(10,4))

返回9.1235