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!

How to suppress '.00' when using TO_CHAR

user452108Dec 3 2009 — edited Dec 9 2009
when I use the following sql, it gives 12.50 and that's fine

select to_char(1250,'999999999999.99') from dual

when I use the following sql, it gives .00 and I want only 0 without any decimal places.

select to_char(0,'999999999999.99') from dual

Question is how to supress .00 and display only 0 without decimal places

I would appreciate if anyone respond quickly.

Thanks in advance,
Ram
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2010
Added on Dec 3 2009
6 comments
5,735 views