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 get the decimal part for an Interger value

943026Jul 30 2014 — edited Jul 30 2014

Hi All,

I have a task to round off the Price column in the price_value table upto 2 decimal values.

create table price_value (price number(20,4));

insert into price_value values(5);

insert into price_value values(55);

insert into price_value values(55.5);

insert into price_value values(55.12);

insert into price_value values(55.456);

select * from price_value;

Expected Output

5.00

55.00

55.50

55.12

55.45  

Please help me how to do this.

Thanks,

This post has been answered by Solomon Yakobson on Jul 30 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 27 2014
Added on Jul 30 2014
5 comments
12,845 views