Does SQL Server support rounding or truncation?

Let's say I insert a 64bit double floating point in the DECIMAL (17.5) field. Does the value contain rounding or truncation?

+2


source to share


1 answer


These are the rounds:

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

      



Returns 9.1235

+4


source







All Articles