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

Home » Public Forums » archive » more bugs in envi !!!
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: more bugs in envi !!! [message #35968 is a reply to message #35725] Fri, 25 July 2003 02:45 Go to previous message
David Lopez Pons is currently offline  David Lopez Pons
Messages: 8
Registered: July 2003
Junior Member
Answer to your second problem:
I thik that yours is an overflow problem. The resultof the operation
b1*100 it's to big for an interger (integer, I supose) and returns the
negative value.
Maybe the operation 'b1/avgb1*100' (all together, in the same line)
works fine.
Another solution is to force the float operation with a dot: 'b1*100./avgb1'

DLo.

Gaurav wrote:

> Hi folks!
> Sorry to trouble u again....but envi seems to be just going above my
> head...there is another problem that i am facing:
> Please go through the 2 functions:
>
> 1.function example,b1
> help,b1
> end
> 2.function example,b1,b2
> help,b1
> end
>
> Now could anyone tell me why these 2 codes are producing different
> final answers??? I just cant find any reason for it.
>
> One more problem :
>
> 'b1' is a positive array and 'avgb1' is a positive number but when i
> use the formula : result=b1*100/avgb1
> print, result
> , the answer that i get is a negative array.
>
> Whereas if i use the formula : result=b1/avgb1
> print, result * 100
> , then i get a positive array
>
>
> I hope to hear the answers to these questions soon. Thnxx
> Byee
> Gaurav
>
>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Making a 2D Array from 3 columns
Next Topic: Re: IDL 6.0 is released!

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

Current Time: Wed Oct 08 17:29:52 PDT 2025

Total time taken to generate the page: 0.00431 seconds