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

Home » Public Forums » archive » Re: IDL is giving me a syntax error out of nowhere
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: IDL is giving me a syntax error out of nowhere [message #62550 is a reply to message #62549] Mon, 15 September 2008 12:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ryan. writes:

> Any insights into this problem would be greatly appreciated,

Well, long integers don't have an decimal points in them:

IDL> print, 12345.678L

print, 12345.678L
^
Syntax error.

When you cast the float to a LONG, it becomes a long,
but the value cannot be determined the way you are
trying to use it, hence the error.

Cheers,

David
--
David Fanning, Ph.D.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: LEGENDRE problem
Next Topic: Re: very simple Index question~~~help~~~

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

Current Time: Sun Oct 12 00:54:17 PDT 2025

Total time taken to generate the page: 0.80025 seconds