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

Home » Public Forums » archive » Re: string conversion & integer
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: string conversion & integer [message #56635 is a reply to message #56634] Thu, 08 November 2007 15:45 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
metachronist writes:

> Thank you for your reply. I am glad the reply was gentle ;-)

Geez, a guy has an argument with his wife and the whole
world holds it against him. I SAID I was sorry! :-(

> This is really weird! And I can't figure out what might be wrong. I
> pass dd_d via call to a procedure, wherein it gets stored as e_dd. It
> is getting passed alright, but I try to do the conversion within the
> procedure and it fails. Am I doing something so fundamentally wrong
> here?!

Ah, this is a FAMOUS gotcha! See this article:

http://www.dfanning.com/misc_tips/noidea.html

Change this line:

print,where(x.dd eq fix(e_dd))

To this,

print,where(x.dd eq fix(e_dd[0]))

and you will get what you expect. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: MAP keyword
Next Topic: Re: MAP keyword

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

Current Time: Wed Oct 08 17:18:05 PDT 2025

Total time taken to generate the page: 0.00446 seconds