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!

to_char number format with optional decimal-point

dusooJan 31 2012 — edited Jan 31 2012
Hi guys.

Basically, what I need to get is the following (in Oracle 11g)

Num -> Str

1 -> '1'
0.1 -> '0.1'
100.01 -> '100.01'

I have tried to achieve this using to_char, but no luck so far.

thanks!
D.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2012
Added on Jan 31 2012
6 comments
20,777 views