In MS SQL Server, if I
SELECT ROUND(9.4, 0), ROUND(8.6, 0), ROUND(10.6, 0)
I unsurprisingly get:
9.0 9.0 11.0
But if I do
SELECT ROUND(9.6, 0)
I get:
Msg 8115, Level 16, State 2, Line 1 Arithmetic overflow error converting expression to data type numeric.
I know I can just CAST(9.6 as DECIMAL(10,0))
, but what is going on here?
TIA