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

Home » Public Forums » archive » Re: 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 #74333] Thu, 13 January 2011 16:07 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paulo Penteado writes:

> Is this a non-default finite()? The one I know takes an argument,
> returning whether the elements are finite numbers (not infinity or
> NaN).

Sorry, totally asleep at the wheel. :-(

goodval = where(finite(array) EQ 1, count)

This is the way I usually screen for NANs. Keywords can add
specificity, but this typically works for me. I don't usually
care *why* a value is bad. I just want to work with good values.

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
Read Message
Previous Topic: Temp variables are checked out
Next Topic: Re: Temp variables are checked out

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

Current Time: Wed Oct 08 17:03:34 PDT 2025

Total time taken to generate the page: 0.00443 seconds