SQL Round Function

前端 未结 7 1340
有刺的猬
有刺的猬 2021-01-13 10:00

round(45.923,-1) gives a result of 50. Why is this? How it is calculated?

(sorry guys i was mistaken with earlier version of this question suggestin

7条回答
  •  萌比男神i
    2021-01-13 10:41

    And on Sql Server 2005:

    select round(45.923,-1)
    ------
    50.000
    

    What database are you running this on?

提交回复
热议问题