comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Bitwise AND, OR, NOT, and XOR?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Bitwise AND, OR, NOT, and XOR? [message #3307 is a reply to message #3280] Fri, 16 December 1994 17:47 Go to previous messageGo to previous message
hahn is currently offline  hahn
Messages: 108
Registered: November 1993
Senior Member
In article <3cscl1$6pd@tali.hsc.colorado.edu> "Matthew T. Adams" <mtadams@columbine.hsc.colorado.edu> writes:
> From: "Matthew T. Adams" <mtadams@columbine.hsc.colorado.edu>
> Subject: Bitwise AND, OR, NOT, and XOR?
> Date: 16 Dec 1994 15:44:33 GMT

> Hello, all.

> I can't seem to find anything in my documentation about whether IDL
> has the bitwise operators AND, OR, NOT, and XOR.

[remainder deleted to save bw]

Look at the following journal, it looks straight forward:
; IDL Version 3.6.1b (windows 3.1)
; Journal File for user@DOS Host
; Working directory: D:\IDL
; Date: Fri Dec 16 17:39:00 1994

a = 123b
b = 1b
print, a and b
; 1
print, a and 2b
; 2
c = string(a, format='(z2)')
print, c
;7b
print, a and 4b
; 0
print, a or 4b
; 127
print, a xor 4b
; 127
print, a xor 2b
; 121

Norbert Hahn
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Need 3D Graphics Help
Next Topic: Re: IDL Mapping & Map Database

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Tue Oct 21 09:09:56 PDT 2025

Total time taken to generate the page: 0.79990 seconds