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

Home » Public Forums » archive » NaN problem in integer arrays
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: NaN problem in integer arrays [message #86214 is a reply to message #86206] Thu, 17 October 2013 13:51 Go to previous message
Kenneth Bowman is currently offline  Kenneth Bowman
Messages: 86
Registered: November 2006
Member
On 2013-10-17 15:44:46 +0000, Galaxytraveler said:

> I use NaN's a lot in my arrays in place of missing or bad data points,
> but I have problems with it everytime my arrays are integer.

NaNs are identified by a special bit pattern in the IEEE floating point
standard (http://en.wikipedia.org/wiki/IEEE_floating_point). There is
no such thing as NaN for integer data types. If you need to implement
a similar concept for integers, you have to choose a specific integer
value to represent, for example, missing data, and then you have to
assume all responsibility for checking for that value.

Ken Bowman
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Interactively crop an image with NG
Next Topic: Test if a linux command is available with Spawn

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

Current Time: Thu Oct 09 20:54:58 PDT 2025

Total time taken to generate the page: 0.00584 seconds