|
|
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  |
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/
|
|
|
|