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 #69708 is a reply to message #69707] Sat, 30 January 2010 13:39 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Jan 30, 3:38 pm, David Fanning <n...@dfanning.com> wrote:
> munka writes:
>> I came across this line:
>
>> Y=( B - A*6)>0.
>
>> is this equal to:
>

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

Just to be clear, that is what the 3 lines of code are doing, so the
answer is yes,

Y = (B-A*6) > 0

is equivalent to

Y=B - A*6
index=where( Y lt 0., ct)
if ct ne 0 then Y[index]=0.

Wayne
[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 17:51:22 PDT 2025

Total time taken to generate the page: 0.00443 seconds