In SQL Server 2008:
declare @Value float
declare @result float
set @Value=7.95
select @result=round(@Value,1)
print @result /*Prints 8*/
set @Value=8.95
select @result=round(@Value,1)
print @result /*Prints 8.9*/
The obtained result is 8.9 for 8.95, but if I put the value as 7.95 the result of the round function is 8.
Why do I get 8.9 instead of 9 for the value 8.95?