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!

Forcing decimal places on string

RanieriOct 2 2009 — edited Oct 2 2009
Hello,

I have a table where number are stored in varchar columns... below I show an example:

3000
4000
7200.45
5471.4
145.14

What I need is to get these values with 2 decimal places... as the result below:

3000.00
4000.00
7200.45
5471.40
145.14

How could I do this?

Thanks
This post has been answered by John Spencer on Oct 2 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2009
Added on Oct 2 2009
5 comments
6,671 views