I have a sample input of 1.0950
with a float type.
Doing this for positive numbers is correct, with a 1.1
result
declare @x float
set @x = 1.0950
select round(@x, 1)
But when I change @x
to negative -1.0950
it still rounds to -1.1
which is incorrect it should always round away from zero, so the answer should be -1.09
I would rather not do two statements, one for positive and one for negative. If anyone could assist I would be very grateful!