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

Home » Public Forums » archive » Re: % Program caused arithmetic error: Floating illegal operand
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: % Program caused arithmetic error: Floating illegal operand [message #61821] Fri, 08 August 2008 13:24 Go to next message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article
<c819955d-5530-4046-a7af-57541b485af1@m73g2000hsh.googlegroups.com>,
neon <neon37@gmail.com> wrote:

> Hi,
> I am having trouble figuring out where this warning message orginates
> in my code. I know this message comes when you have NaNs in the data
> that you are manipulating. But the thing is the code i'm dealing with
> is pretty huge and I'm having trouble isolating the cause. Does anyone
> know of a way to figure out the line number where this warning message
> is orginating from? It would save me quite a bit of time.
> Thanks
> --
> Nirbhik

See the !EXCEPT system variable. (Set !EXCEPT = 2)

Ken Bowman
Re: % Program caused arithmetic error: Floating illegal operand [message #61822 is a reply to message #61821] Fri, 08 August 2008 14:45 Go to previous message
Vince Hradil is currently offline  Vince Hradil
Messages: 574
Registered: December 1999
Senior Member
On Aug 8, 4:28 pm, "ben.bighair" <ben.bigh...@gmail.com> wrote:
> On Aug 8, 4:07 pm, neon <neo...@gmail.com> wrote:
>
>> Hi,
>> I am having trouble figuring out where this warning message orginates
>> in my code. I know this message comes when you have NaNs in the data
>> that you are manipulating. But the thing is the code i'm dealing with
>> is pretty huge and I'm having trouble isolating the cause. Does anyone
>> know of a way to figure out the line number where this warning message
>> is orginating from? It would save me quite a bit of time.
>> Thanks
>> --
>> Nirbhik
>
> Hi,
>
> Try changing the value of the system variable !EXCEPT as described
> here:http://tinyurl.com/6oaha3
>
> Cheers,
> Ben

This is also in: Window->Preferences...->IDL->Interpreter->Report
floating-point math exceptions->Immediately (2)

But !EXCEPT=2 is a lot shorter 8^)
Re: % Program caused arithmetic error: Floating illegal operand [message #61827 is a reply to message #61822] Fri, 08 August 2008 14:28 Go to previous message
ben.bighair is currently offline  ben.bighair
Messages: 221
Registered: April 2007
Senior Member
On Aug 8, 4:07 pm, neon <neo...@gmail.com> wrote:
> Hi,
> I am having trouble figuring out where this warning message orginates
> in my code. I know this message comes when you have NaNs in the data
> that you are manipulating. But the thing is the code i'm dealing with
> is pretty huge and I'm having trouble isolating the cause. Does anyone
> know of a way to figure out the line number where this warning message
> is orginating from? It would save me quite a bit of time.
> Thanks
> --
> Nirbhik

Hi,

Try changing the value of the system variable !EXCEPT as described
here: http://tinyurl.com/6oaha3

Cheers,
Ben
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Quiet Around Here
Next Topic: heartbeat timeout

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

Current Time: Wed Oct 08 19:36:21 PDT 2025

Total time taken to generate the page: 0.01039 seconds