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 #74442 is a reply to message #74333] Fri, 14 January 2011 07:16 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <MPG.279941936212ce0e98992d@news.giganews.com>,
David Fanning <news@dfanning.com> wrote:

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

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.

Cheers, Ken
[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: Thu Oct 09 22:09:06 PDT 2025

Total time taken to generate the page: 0.72062 seconds