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

Home » Public Forums » archive » Re: assignment inside boolean expression
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: assignment inside boolean expression [message #20601 is a reply to message #20593] Tue, 11 July 2000 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Ben Tupper <tupper@seadas.bigelow.org> writes:
> "Liam E.Gumley" wrote:
>
>>
>> Recall that in IDL, integers with odd non-zero values are Boolean
>> 'True'. Beware of floats and doubles though, where any non-zero value is
>> Boolean 'True'.
>>
>
> Dang!
>
> I just spent an hour figuring out an efficient way of determining if an
> integer is odd!
>
> I have an IDL function ISODD() for sale... very cheap. No reasonable
> offer refused.

Not to undercut you, but will (X AND 1) do the trick?

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Standalone IDL applications?
Next Topic: Re: Writing GIF files in IDL ATTN: Paul van Delst, Liam Gumley

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

Current Time: Fri Oct 10 14:23:33 PDT 2025

Total time taken to generate the page: 1.35812 seconds