I have this number 0.581183781439, I need to round the number 0.582
I was trying with
SELECT ROUND (0.581183781439, 3) ------------------------------
Adding a half value and using normal round will get the correct result.
SELECT ROUND (0.581183781439 + .0005, 3)
Bonus: Subtract the half value instead, and it will round down.
EDIT: Actually, this has the same flaw as an answer above when the value is zeros after the 3rd decimal.