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 #47535 is a reply to message #47534] Sun, 12 February 2006 19:18 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Check this out:
>
> IDL> a=1.9999999
> IDL> print, a
> 2.00000
> IDL> print, findgen(a)
> 0.000000

Whoops! I accidentally left out the last example:

IDL> print, fix(a)
1

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: Sat Oct 11 11:35:56 PDT 2025

Total time taken to generate the page: 1.59928 seconds