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

Home » Public Forums » archive » round to x number of decimals within floating point value?
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: round to x number of decimals within floating point value? [message #74441 is a reply to message #74355] Fri, 14 January 2011 07:33 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> The equality test is unnecessary, so you can write
>
> goodval = where(finite(array), count)
>
> to find the good values and
>
> badval = where(~finite(array), count)
>
> to find the bad values. And of course you can do both
> with a single WHERE and appropriate keywords.

Yes, of course, but with the usual quibbles about
making your programs so cryptic newbies can't figure
them out. :-)

In this case, if you know what "finite" means, you
are good to go.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: It's about time
Next Topic: GDAL spawn library conflict

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

Current Time: Wed Oct 08 17:58:33 PDT 2025

Total time taken to generate the page: 0.00392 seconds