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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

display exact 3 decimal values

user11219778Jan 12 2011 — edited Jan 19 2011
Hi,

It am unable to figure out how I can display 3 deimcal places of a number where two decimal values exist.

The following works fine using dual table.
For example
select to_char('43.73', '9999.999') from dual
O/P is 43.730

but when I get the values using procedure it display '43.73', I have tried to_char, to_number functions and no luck..........can anybod share function to display zero at the end. your help is appreciated.

The data type of the column is "varchar2(50)

Sonia
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 16 2011
Added on Jan 12 2011
5 comments
6,129 views