Re: valid numbers

New Message Reply Date view Thread view Subject view Author view

David Blythe (blythe++at++banshee.asd.sgi.com)
Thu, 27 Mar 1997 14:02:05 -0800


| 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?

isnanf() or fpclass() (man isnan for more details).
        -db

| - bryan wasileski
=======================================================================
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.