How to display two digits after decimal point in SQL Server

后端 未结 4 1404
生来不讨喜
生来不讨喜 2020-12-23 09:27

I have table which has a column of float data type in SQL Server I want to return my float datatype column value with 2 decimal places

4条回答
  •  旧时难觅i
    2020-12-23 09:41

    You can also Make use of the Following if you want to Cast and Round as well. That may help you or someone else.

    SELECT CAST(ROUND(Column_Name, 2) AS DECIMAL(10,2), Name FROM Table_Name
    

提交回复
热议问题