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

Home » Public Forums » archive » Re: Simple question about the '>' sign.
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: Simple question about the '>' sign. [message #69698 is a reply to message #69697] Mon, 01 February 2010 14:55 Go to previous messageGo to previous message
R.G.Stockwell is currently offline  R.G.Stockwell
Messages: 163
Registered: October 2004
Senior Member
> munka writes:
>
>> I came across this line:
>>
>> Y=( B - A*6)>0.
>>
>> is this equal to:
>>
>> Y=B - A*6
>> index=where( Y lt 0., ct)
>> if ct ne 0 then Y[index]=0.
>
> No, this is the "greater than" operator. It compares
> the two values on either side of the operator and returns
> the largest of the two.
>
>> Also, is the decimal point after the 0 significant?


actually, it could force Y to be a float array, rather than an int array.
(if a and b are ints)

IDL> help,( b - a*6) > 0
<Expression> INT = Array[10]
IDL> help,( b - a*6) > 0.
<Expression> FLOAT = Array[10]
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Acuirign Images from a Webcam/Windows
Next Topic: Re: IDL make_dll and unresolved externals

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

Current Time: Wed Oct 08 13:51:39 PDT 2025

Total time taken to generate the page: 0.00440 seconds