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

Home » Public Forums » archive » Re: Can someone please explain this to me, I am stumped (or stupid)...
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: Can someone please explain this to me, I am stumped (or stupid)... [message #47536 is a reply to message #47535] Sun, 12 February 2006 19:15 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Green writes:

> This seems to be the cause of the problem, not sure why this is
> happening though
>
> IDL> print, nph[jj]
> 2.00000
> IDL> print, fix(nph[jj])
> 1
> IDL>

When is the last time you read the Sky is Falling article?

http://www.dfanning.com/math_tips/sky_is_falling.html

Check this out:

IDL> a=1.9999999
IDL> print, a
2.00000
IDL> print, findgen(a)
0.000000

Computers, man! Who needs 'em! :-)

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: Can someone please explain this to me, I am stumped (or stupid)...
Next Topic: How to make major tick marks appear where you want them??

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

Current Time: Thu Oct 16 18:06:48 PDT 2025

Total time taken to generate the page: 1.75969 seconds