Jul 25 Chris Carton wrote: | | http://allserv.rug.ac.be/unix/software/workshop/manuals/c/user_guide/data.represent.html | | I scanned that page quickly and believe that the answer you're looking for is | there. | | Chris | | | >> I note in the C source that these two pseudo-numbers have representation | >> defined in terms of the particular float scheme used with the C compiler: | >> | >> #define DNAN ((double)(0.0/0.0)) | >> #define DINF ((double)(1.0/0.0)) | >> | >> Apparently, these two representations come out different. However, in the | >> math I studied, "anything" divided by 0 is still ... like Undefined. And so | >> 0/0 is the same as 1/0 and both are illegal.
you also might want to take a look at the configure.in file it contains a neat little test program to figure out how well your compiler handles the NAN / INF problem ... its quite a pain to support all the different systems tobi | | | -- | Unsubscribe mailto:[EMAIL PROTECTED] | Help mailto:[EMAIL PROTECTED] | Archive http://www.ee.ethz.ch/~slist/rrd-developers | WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi | | -- ______ __ _ /_ __/_ / / (_) Oetiker, ETZ J97, ETH, 8092 Zurich, Switzerland / // _ \/ _ \/ / phoneto:+41(0)1-632-5286 faxto:+41(0)1-632-1517 /_/ \.__/_.__/_/ mailto:[EMAIL PROTECTED] http://people.ee.ethz.ch/~oetiker -- Unsubscribe mailto:[EMAIL PROTECTED] Help mailto:[EMAIL PROTECTED] Archive http://www.ee.ethz.ch/~slist/rrd-developers WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
