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!

BigDecimal.ROUND_HALF_UP functionality using ORACLE PLSQL function

2800808Nov 23 2014 — edited Nov 24 2014

Hello there,

is there any way i can reproduce the BigDecimal.ROUND_HALF_UP functionality using oracle PL SQL function.

I'm looking for the following rounding result.

Value --> Expected Result

165.725 --> 165.72

165.726 --> 165.73

165.724 --> 165.72

current ROUND(165.725,2) is not giving me expected results for 165.725... I'm expecting 165.72 instead 165.73.

Ravi

This post has been answered by Frank Kulash on Nov 23 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 22 2014
Added on Nov 23 2014
16 comments
5,368 views