Re: valid numbers

New Message Reply Date view Thread view Subject view Author view

Swaminathan N. (swami++at++evl.uic.edu)
Thu, 27 Mar 1997 16:05:06 -0600 (CST)


On Thu, 27 Mar 1997, Bryan Wasileski wrote:

> Performers:
>
> 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?
>
> Thanks much.
>

You could try isnan from <ieeefp.h>. Not portable though, however, that
shouldnt really bother you :-)
Swami

 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
v Swaminathan Narayanan ^
v swami++at++evl.uic.edu ^
v Office: 996-3002 ^
v Home: 850-2726 ^
v http://www.evl.uic.edu/swami ^
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:58 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.