home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8527 < prev    next >
Encoding:
Text File  |  1993-01-25  |  2.2 KB  |  50 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!newsserver.jvnc.net!erenj.com!jhharde.erenj.com!jhharde
  3. From: jhharde@erenj.com (John Hardenbergh)
  4. Subject: Re: NaN and comp type
  5. Message-ID: <jhharde.14.727988801@erenj.com>
  6. Keywords: comp, NaN
  7. Lines: 36
  8. Sender: news@erenj.com (Usenet News System Gateway)
  9. Nntp-Posting-Host: jhharde.erenj.com
  10. Organization: Exxon Research and Engineering
  11. References: <1993Jan23.072940.22388@qiclab.scn.rain.com>
  12. Date: Mon, 25 Jan 1993 19:06:41 GMT
  13.  
  14. In article <1993Jan23.072940.22388@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) writes:
  15. >Path: erenj.com!newsserver.jvnc.net!yale.edu!nigel.msen.com!sdd.hp.com!swrinde!emory!ogicse!qiclab!leonard
  16. >From: leonard@qiclab.scn.rain.com (Leonard Erickson)
  17. >Newsgroups: comp.lang.pascal
  18. >Subject: NaN and comp type
  19. >Keywords: comp, NaN
  20. >Message-ID: <1993Jan23.072940.22388@qiclab.scn.rain.com>
  21. >Date: 23 Jan 93 07:29:40 GMT
  22. >Article-I.D.: qiclab.1993Jan23.072940.22388
  23. >Reply-To: Leonard.Erickson@f51.n105.z1.fidonet.org
  24. >Organization: SCN Research/Qic Laboratories of Tigard, Oregon.
  25. >Lines: 13
  26. >According to the TP6 manual, NaN is represented for the comp type
  27. >by a value of 0, with a sign bit of 1. But if you *create* such a
  28. >value TP 5.5 and TP 6.0 both treat it as a *large* negative 
  29. >number (-9.22337203685478E+0018) 
  30. >
  31. >So is it broken, or are the docs wrong? I was *hoping* to use it 
  32. >to mark uninitialized values. <sigh>
  33. >
  34. >-- 
  35. >Leonard Erickson              leonard@qiclab.scn.rain.com
  36. >CIS: [70465,203]             70465.203@compuserve.com
  37. >FIDO:   1:105/51     Leonard.Erickson@f51.n105.z1.fidonet.org
  38. >(The CIS & Fido addresses are preferred)
  39.  
  40.    Please forgive my ignorance but what is NaN.  For that matter what
  41. are denormals, and why would one be concerned with expressing infinities   
  42. in a Real Type ( see TP6 manual same section as Comp type )?
  43.  
  44. Regards, JHH
  45. John H. Hardenbergh                  |           .-------.    H     H
  46. Exxon Research and Engineering       |           |       |     \   /
  47. jhharde@erenj.com                    |           |   O   | ---> C=C 
  48. Disclaimer: These are my views,      |           |   I   |     /   \
  49.             these are only my views. | Better Chemistry Thru Computer Science                            
  50.