I think you mean a "power" of two, not a "multiple" of two.

-- Roger Glover

--- Paul Franz <[EMAIL PROTECTED]> wrote:
> Shift Operator: What is it good for?Dividing by a multiple of 2. This is
> faster than using the / operator.
> 
> Paul Franz
>   ----- Original Message ----- 
>   From: Hansen, Knud 
>   To: JDJList 
>   Sent: Thursday, September 05, 2002 2:19 PM
>   Subject: [jdjlist] Shift Operator: What is it good for?
> 
> 
>   During the discussion about 'Getting digits from an integer' there was a
> reference to the binary shift operator >>.  In my 15 years of programming I
> have never once used the shift operator.  I am sure it must be used for
> something, but I can not think of anything useful.  Anybody out there every
> use it?  If so, what for?
> 
>   Thanks 
>   Knud Hansen 


=====
-- Roger Glover

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to