home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8501 < prev    next >
Encoding:
Internet Message Format  |  1993-01-24  |  1.8 KB

  1. Path: sparky!uunet!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!exucom.exu.ericsson.se!pc254167.exu.ericsson.se!exuptr
  2. From: exuptr@exu.ericsson.se (Sunbird a la 400ci)
  3. Newsgroups: comp.lang.pascal
  4. Subject: Re: NaN and comp type
  5. Keywords: comp, NaN
  6. Message-ID: <exuptr.747.0@exu.ericsson.se>
  7. Date: 25 Jan 93 02:57:19 GMT
  8. References: <1993Jan23.072940.22388@qiclab.scn.rain.com>
  9. Sender: news@exu.ericsson.se
  10. Organization: Ericsson Network Systems, Inc.
  11. Lines: 25
  12. Nntp-Posting-Host: pc254167.exu.ericsson.se
  13. X-Disclaimer: This article was posted by a user at Ericsson.
  14.               Any opinions expressed are strictly those of the
  15.               user and not necessarily those of Ericsson.
  16.  
  17. In article <1993Jan23.072940.22388@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) writes:
  18. >From: leonard@qiclab.scn.rain.com (Leonard Erickson)
  19. >Subject: NaN and comp type
  20. >Keywords: comp, NaN
  21. >Date: 23 Jan 93 07:29:40 GMT
  22.  
  23. >According to the TP6 manual, NaN is represented for the comp type
  24. >by a value of 0, with a sign bit of 1. But if you *create* such a
  25. >value TP 5.5 and TP 6.0 both treat it as a *large* negative 
  26. >number (-9.22337203685478E+0018) 
  27.  
  28. >So is it broken, or are the docs wrong? I was *hoping* to use it 
  29. >to mark uninitialized values. <sigh>
  30.  
  31. One way to check for sure would be to attempt to access the data one longint
  32. at a time, and looking at the hex representation of each double-word.  This 
  33. also might prove a prettier way of initialising them.
  34.  
  35.  -----------Visit the SOUNDING BOARD BBS 214-596-2915, a Wildcat! BBS--------
  36.  ObQuotes:
  37.  "Quick to judge, quick to anger, slow to understand..."
  38.  "Ignorance and prejudice, and fear go hand-in-hand..."
  39.  
  40.     Patrick Taylor, Ericsson Network Systems
  41.     exuptr@exu.ericsson.se                    "Don't let the .se fool you"
  42.