[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bitwise operators in IDL?




thompson@orpheus.nascom.nasa.gov (William Thompson) writes:

> "Rick Towler" <rtowler@u.washington.edu> writes:
> 
> >Is there a built in function in IDL for the c++ bitwise operator "&" or is
> >this going to be the first DLM i write?
> 
> >Rick Towler
> 
> 
> AND, OR, and NOT are bitwise operators.
> 
> William Thompson

Which leads to some interesting confusion sometimes when they are used
as logical operators.  Consider that:

  255 AND 'fe'xl    is false, and
  NOT 2             is true

Craig

-- 
--------------------------------------------------------------------------
Craig B. Markwardt, Ph.D.         EMAIL:    craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
--------------------------------------------------------------------------