home *** CD-ROM | disk | FTP | other *** search
- 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
- From: exuptr@exu.ericsson.se (Sunbird a la 400ci)
- Newsgroups: comp.lang.pascal
- Subject: Re: NaN and comp type
- Keywords: comp, NaN
- Message-ID: <exuptr.747.0@exu.ericsson.se>
- Date: 25 Jan 93 02:57:19 GMT
- References: <1993Jan23.072940.22388@qiclab.scn.rain.com>
- Sender: news@exu.ericsson.se
- Organization: Ericsson Network Systems, Inc.
- Lines: 25
- Nntp-Posting-Host: pc254167.exu.ericsson.se
- X-Disclaimer: This article was posted by a user at Ericsson.
- Any opinions expressed are strictly those of the
- user and not necessarily those of Ericsson.
-
- In article <1993Jan23.072940.22388@qiclab.scn.rain.com> leonard@qiclab.scn.rain.com (Leonard Erickson) writes:
- >From: leonard@qiclab.scn.rain.com (Leonard Erickson)
- >Subject: NaN and comp type
- >Keywords: comp, NaN
- >Date: 23 Jan 93 07:29:40 GMT
-
- >According to the TP6 manual, NaN is represented for the comp type
- >by a value of 0, with a sign bit of 1. But if you *create* such a
- >value TP 5.5 and TP 6.0 both treat it as a *large* negative
- >number (-9.22337203685478E+0018)
-
- >So is it broken, or are the docs wrong? I was *hoping* to use it
- >to mark uninitialized values. <sigh>
-
- One way to check for sure would be to attempt to access the data one longint
- at a time, and looking at the hex representation of each double-word. This
- also might prove a prettier way of initialising them.
-
- -----------Visit the SOUNDING BOARD BBS 214-596-2915, a Wildcat! BBS--------
- ObQuotes:
- "Quick to judge, quick to anger, slow to understand..."
- "Ignorance and prejudice, and fear go hand-in-hand..."
-
- Patrick Taylor, Ericsson Network Systems
- exuptr@exu.ericsson.se "Don't let the .se fool you"
-