Re: casting error [message #69882] |
Tue, 02 March 2010 04:15  |
Wout De Nolf
Messages: 194 Registered: October 2008
|
Senior Member |
|
|
On Tue, 2 Mar 2010 03:56:48 -0800 (PST), a
<oxfordenergyservices@googlemail.com> wrote:
> Hi
>
> I have an error which comes quite infrequently, but it doesn't stop
> the program...it is a casting error, but I don't know how to fix
> without the program stopping for me. any ideas?
>
> warning below
>
> % Type conversion error: Unable to convert given STRING to Float.
>
> Thanks
>
> Russ
This happens when doing e.g.
IDL> print,float('test')
To find out where this happens, set except to 2:
!EXCEPT=2
|
|
|
Re: casting error [message #70062 is a reply to message #69882] |
Fri, 05 March 2010 01:46  |
oxfordenergyservices
Messages: 56 Registered: January 2009
|
Member |
|
|
On 2 Mar, 12:15, Wox <s...@nomail.com> wrote:
> On Tue, 2 Mar 2010 03:56:48 -0800 (PST), a
>
> <oxfordenergyservi...@googlemail.com> wrote:
>> Hi
>
>> I have an error which comes quite infrequently, but it doesn't stop
>> the program...it is a casting error, but I don't know how to fix
>> without the program stopping for me. any ideas?
>
>> warning below
>
>> % Type conversion error: Unable to convert given STRING to Float.
>
>> Thanks
>
>> Russ
>
> This happens when doing e.g.
> IDL> print,float('test')
>
> To find out where this happens, set except to 2:
> !EXCEPT=2
great, thanks!
|
|
|