Is it possible to round down with SQL Server 2008? For instance. .96855rounded to .968.
.96855
.968
those. to .96899 I want to round 0.96899, avoiding rest.
SELECT round(0.96855, 3, 1)
-> 0.96800
For 0.968: it cast(round(0.96855, 3, 1) as decimal(10,3))works fine.
cast(round(0.96855, 3, 1) as decimal(10,3))
Link: Round (if the last parameter for the round is nothing but zero, it is truncated)
Did it help?
SELECT ROUND(123.9994, 3) Results: 123.9990 SELECT ROUND(123.9995, 3) Results: 124.0000