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

Home » Public Forums » archive » Re: Passing zero as a Parameter/ NOT KEYWORD_SET
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: Passing zero as a Parameter/ NOT KEYWORD_SET [message #16040] Wed, 30 June 1999 00:00 Go to previous message
J.D. Smith is currently offline  J.D. Smith
Messages: 214
Registered: August 1996
Senior Member
"R.Bauer" wrote:
>
> Martin Schultz wrote:
>
>> Martin Schultz wrote
>>
>> and D. Fanning, R. Bauer and J.D. Smith replied
>>
>> [...]
>>
>> oh well! Just when I for once thought I knew IDL ;-(
>> (1) I confess: I confused IF with KEYWORD_SET. It is still sometimes
>> enstranging that
>> IF (2) THEN PRINT,'TRUE'
>> will not print anything...
>
> Did you know that's
>
> if (3) then print,'true'
>
> will print 'true'
>
> All odd number gives true.
>

For non-floating numbers, only the least significant bit is examined.
Note that if (-1) also gives true. For floating numbers, only 0.0 is
false.

JD

--
J.D. Smith |*| WORK: (607) 255-5842
Cornell University Dept. of Astronomy |*| (607) 255-6263
304 Space Sciences Bldg. |*| FAX: (607) 255-5875
Ithaca, NY 14853 |*|
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Zero vector detection in IDL
Next Topic: Re: Extra space around widget windows....

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

Current Time: Wed Oct 08 15:22:18 PDT 2025

Total time taken to generate the page: 0.00447 seconds