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!

Number formatting

RajatFeb 5 2015 — edited Feb 5 2015
Header 1Header 2
1.3
15.48
14
11555.1

Dear All,

In a table i have a data like above table.

I want output like (ratio)

1:0.30

1:5.48

1:4.00

1:1555.10

When i am giving To_char(abc_num,'0D00') then first three rows are coming fine but last row comming like 1:#####.

when i am giving To_char(abc_num,'0000D00')

1:0000.30

1.0005.48

which i don't like. Could you please tell me how can i achive

1:0.30

1:5.48

1:4.00

1:1555.10

Regards

Rajat

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 5 2015
Added on Feb 5 2015
6 comments
1,507 views