How to round with no trailing zeros in SQL Server 2005?
select round(100.5555, 2)
...yields 100.55**00**. How to get rid of the zeros?
How to round with no trailing zeros in SQL Server 2005?
select round(100.5555, 2)
...yields 100.55**00**. How to get rid of the zeros?
You could re-cast it as your original datatype, e.g.
SELECT CAST(ROUND(100.5555, 2) AS FLOAT)
However, this sounds like display logic and therefore, I suspect you are better off doing this within your UI rather than your DB.