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

Home » Public Forums » archive » number problem
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: number problem [message #61250 is a reply to message #61198] Thu, 10 July 2008 08:12 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
d.poreh@gmail.com wrote:
> On Jul 10, 4:50 pm, Spon <christoph.b...@gmail.com> wrote:
>> On Jul 10, 3:22 pm, David Fanning <n...@dfanning.com> wrote:
>>
>>
>>
>>> Paul van Delst writes:
>>>> Think about what this line is doing:
>>>> > a=0&b=0&c=0&d=0&e=0&f=0
>>>> ...and how you subsequently use the variables.
>>> This is why I love this newsgroup. I couldn't possibly
>>> be this gentle this morning. :-)
>>> Cheers,
>>> David
>>> --
>>> David Fanning, Ph.D.
>>> Fanning Software Consulting, Inc.
>>> Coyote's Guide to IDL Programming:http://www.dfanning.com/
>>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>> I think this:
>> dist=(dblarr(10000))
>> dist(count)=f
>>
>> could potentially cause major headaches as there's an in-built IDL
>> function called DIST. I don't know how rigorous IDL is about checking
>> if something's a local variable before assuming it's a function -
>> you'd probably get away with it - but it's not something I'd like to
>> risk...
>>
>> In general, this looks like another case for Read_ASCII and
>> ASCII_Template, to be honest. This is another wheel that doesn't need
>> reinventing, IMHO :-)
>>
>> Regards
>
> yes that was the problem!!1
> it is works properly.but for lat-lon data as you can see it is not:
> 499690.96 3387795.6
>
> i need more details like this
> 499690.95879779 3387795.57157002

Now you need to read the IDL help manual section entitled: "Format Codes"

It is available via
IDL Programmers' Guides > Application Programming > Part II: Components of the IDL
Language > Files and Input/Output

The visual and internal representation of a floating point number are two very different
things.

Yea verily, here endeth the lesson.

:o)

cheers,

paulv

p.s. FWIW, this exact same question occurs quite regularly in the Fortran newsgroup as well.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: x*x versus x^2
Next Topic: Re: Compare two variables

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

Current Time: Wed Oct 08 17:46:45 PDT 2025

Total time taken to generate the page: 0.00462 seconds