- testing for NaNs

From: A Thomas <"A>
Date: Mon, 13 Aug 2007 11:04:09 +0300

----boundary-LibPST-iamunique-1871453874_-_-
Content-type: text/plain

Hei,

        I would like to test a REAL to see if it is a NaN. What is the best
way of doing this? If I use a variant record I can regard the 8 byte real as
two 4 byte integers (or maybe better two variables of type SET)But what bit
pattern will indicate a NaN?

Thanks

        Andrew

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy

----boundary-LibPST-iamunique-1871453874_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhlaSxccGFyDQpccGFyDQpcdGFiIEkgd291bGQg
bGlrZSB0byB0ZXN0IGEgUkVBTCB0byBzZWUgaWYgaXQgaXMgYSBOYU4uIFdoYXQgaXMgdGhlIGJl
c3RccGFyDQp3YXkgb2YgZG9pbmcgdGhpcz8gSWYgSSB1c2UgYSB2YXJpYW50IHJlY29yZCBJIGNh
biByZWdhcmQgdGhlIDggYnl0ZSByZWFsIGFzXHBhcg0KdHdvIDQgYnl0ZSBpbnRlZ2VycyAob3Ig
bWF5YmUgYmV0dGVyIHR3byB2YXJpYWJsZXMgb2YgdHlwZSBTRVQpQnV0IHdoYXQgYml0XHBhcg0K
cGF0dGVybiB3aWxsIGluZGljYXRlIGEgTmFOP1xwYXINClxwYXINClRoYW5rc1xwYXINClxwYXIN
Clx0YWIgQW5kcmV3XHBhcg0KXHBhcg0KLS0tIEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3ViamVj
dCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRvIGJsYWNrYm94QG9iZXJvbi5jaFxwYXINCn0=


----boundary-LibPST-iamunique-1871453874_-_---
Received on Mon Aug 13 2007 - 10:04:09 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:25 UTC