Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Displaying all numbers with 2 decimal places

707018Nov 23 2011 — edited Nov 23 2011
Hi 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
This post has been answered by Frank Kulash on Nov 23 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2011
Added on Nov 23 2011
3 comments
7,076 views