TSQL Round up decimal number

前端 未结 4 870
庸人自扰
庸人自扰 2021-01-13 23:56

I have this number 0.581183781439, I need to round the number 0.582

I was trying with

SELECT ROUND (0.581183781439, 3)
------------------------------         


        
4条回答
  •  庸人自扰
    2021-01-14 00:01

    Maybe you need this?

    SELECT ROUND(0.581183781439, 3,1) + .001
    

    but correct rounding is 0.581.

提交回复
热议问题