Simon Bennett (simonb++at++wormald.com.au)
Fri, 28 Mar 1997 12:45:24 +1111 (EST)
> Performers:
> This is not performer question explicitly but since it is relates to my
> performer app. and you guys/gals may have come across this before....
> I need to verify whether or not position and orientation data is valid;
> valid in the sense of being a valid number. Sometimes I receive data
> (via ethernet packets) that is NaN, "not a numer" and I need to make sure
> that it IS a valid floating point number before using it. Are there any
> routines already available that check for valid floating point
> representation?
isnan() isnanl() isnanf() et al...
Should do what you want. They return true if the arguement is NaN.
+----------------------------------------------------------------------------+
Simon Bennett simonb++at++wormald.com.au
Wormald Technology Advanced Systems Engineering Ph: +61 2 9981 0669
"Good judgement is the result of experience.
Experience is the result of poor judgement"
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:58 PDT