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!

Round to next dollar

Sc0ttMay 2 2006 — edited May 2 2006
Ok I have a requirement that I need to round to the next whole dollar. I was just wondering if there was another way to do it than the way I was thinking.
EX:
432.01 => 433
550.59 => 551

select trunc(432.01) + 1
  from dual
Is there a rounding option to do this rather than having to truncate and add 1? And yes I need the next FULL dollar amount, not the closest dollar amount. Sort of how cell phone companies round up your fractions of seconds to the next whole minute.

Thanks! This works ok I am just curious if there any other options I'm missing.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2006
Added on May 2 2006
2 comments
273 views