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

Re: assignment inside boolean expression



"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.

Ben


--
Ben Tupper

Bigelow Laboratory for Ocean Science
tupper@seadas.bigelow.org

pemaquidriver@tidewater.net