Reputation: 29664
Say I'm inserting a 64 bit floating point double into a DECIMAL(17,5) field. Does the value get rounded or truncated?
Upvotes: 3
Views: 2461
Reputation: 95123
It rounds:
select cast(9.12345 as decimal(10,4))
Returns 9.1235
9.1235
Upvotes: 5