Steve Jones - SSC Editor
SSC Guru
Points: 736172
More actions
August 14, 2024 at 12:00 am
#4436759
Comments posted to this topic are about the item Database Options and Numeric Roundabort
sql-server-helper
Newbie
Points: 1
August 14, 2024 at 8:23 am
#4444778
Nice tricky question! To make it a little bit trickier, you can also do something like this:
DECLARE @a NUMERIC(5,3) = 1.285DECLARE @b NUMERIC(5,3) = 1.465DECLARE @c NUMERIC(5,1)SELECT @c = @a + @bSELECT @c
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply