From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <27e3bf985088cc336551b41938a01f8b@coraid.com> From: erik quanstrom Date: Tue, 20 Feb 2007 23:18:22 -0500 To: 9fans@cse.psu.edu Subject: Re: [9fans] NaN(2) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 11aaac6c-ead2-11e9-9d60-3106f5b1d025 after a bit of actual thought, i think that NaN is supposed to generate a note. if you do catch the note, the program should work fine. e.g. #include #include void note(void *, char *s) { if(strncmp(s, "sys: fp: ", 8) == 0) noted(NCONT); noted(NDFLT); } void main(void) { double d; notify(note); d = NaN(); print("%g\n", d); }