Re: round to x number of decimals within floating point value? [message #74333] |
Thu, 13 January 2011 16:07  |
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.")
|
|
|
|
|
|
|