Arjen Markus writes:
 > Werner Smekal wrote:
 > 
 > >Hello Andrew,
 > >
 > >
 > >  
 > >
 > >Ok, sounds good. Only problem I see is, that the value of these 
 > >variables will likely not be defined, since it's not cpp and I have no 
 > >constructor where I can set them. And than I can't find out, what was 
 > >set or not (since they may and will have any value). But I'll have a 
 > >look and commit the changes if I find a solution (or if this problem 
 > >doesn't exist anyway).
 > >  
 > >
 > One way to detect missing values is to initialise these variables to a known
 > reserved value. My favourite is -999.0:
 > - It can be represented exactly (!) in single and double precision, so 
 > no comparison
 >   problems as with -99.99 or the like
 > - Because it is a negative value, it is much less likely to occur in 
 > (measurement)
 >   data than, say, 999.0
 > - It stands out: it is obviously a constructed value

Great minds think alike:

$ grep UNDEF include/plplotP.h 
#define PL_UNDEFINED -9999999

:)

-- 
Maurice LeBrun


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to