Displaying all numbers with 2 decimal places
707018Nov 23 2011 — edited Nov 23 2011Hi All,
We have a requirement in our code where we want that all numbers must be diplayed with 2 decimal places.
Eg: If a number is 21.234 then it should be displayed as 21.23
If a number is 21.289 then it should be displayed as 21.28
If a number is 21 then it should be displayed as 21.00
Can anyone please help me how to do it in a SQL query.
Regards,
Shruti