If I run the following on SQL Server 2012 I get two different answers from the first two select statments.Any reason why and what I need to do to avoid this. The second statement gives the wrong answer and that is the statement that I need to use in my code. With the change in statement 3 , I get the right answer but I am not getting the confidence that I should introduce the change in all my calculations.select round((1400.05 / 4232.33 ) * 4180.06 ,2) --Statement 1declare @v1 smallmoney = 1400.05, @v2 smallmoney = 4232.33, @v3 smallmoney = 4180.06select round((@v1 / @v2 ) * @v3 ,2) --Statement 2select round((@v1*1.0 / @v2 ) * @v3 ,2) --Statement 3Thank you very much for the help.RegardsDivesh
↧