SQL Round Function

前端 未结 7 1287
有刺的猬
有刺的猬 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条回答
  • 2021-01-13 10:41

    And on Sql Server 2005:

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

    What database are you running this on?

    0 讨论(0)
提交回复
热议问题