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!

number shift left and shift right

483527Dec 7 2007 — edited Dec 8 2007
Hi

Is there an arithmetic operator to divide a number by a 2^n (same as shifting right by n bits)

Example:

8 >> 2 => 4 <= 8/power(2,2)
8 << 1 => 16 <= 8*power(2,1)

Kind regards
Taoufik



Kind regards
Taoufik
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2008
Added on Dec 7 2007
4 comments
2,422 views