How to round with no trailing zeros in SQL Server 2005?
select round(100.5555, 2)
...yields 100.5500. How to get rid of the zeros?
Try this
select CAST(round(100.5555, 2) AS DECIMAL(8,2))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With