By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,602 Members | 1,507 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,602 IT Pros & Developers. It's quick & easy.

how to round off number in oracle!!!??!

P: 1
do anybody know how to round of f a number in oracle such that
81 to 90
82 to 90
83 to 90
89 to 90
and 91 to 100 and so on.
pls help!
Sep 28 '07 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 10K+
P: 14,534
This question has been moved to the Oracle forum.

Technical questions are not allowed in the Cafe area.

Sep 28 '07 #2

Expert 100+
P: 145
I dont think there is a built in function in Oracle for whole numbers but we use CEIL function to do the same for decimals.

select (ceil(81/10) * 10) from dual

This is just a workaround and you may test it for all scenarios and performance with regards to your requirement. If you find a better approch, do post it.
Sep 28 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.