home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / gcc / help / 1967 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.1 KB

  1. Path: sparky!uunet!stanford.edu!ames!elroy.jpl.nasa.gov!usc!orion.oac.uci.edu!venice.eng.uci.edu!jtien
  2. From: jtien@venice.eng.uci.edu (Joe Tien)
  3. Subject: floating point bias
  4. Nntp-Posting-Host: venice.eng.uci.edu
  5. Message-ID: <2A94493F.10034@orion.oac.uci.edu>
  6. Newsgroups: gnu.gcc.help
  7. Reply-To: jtien@venice.eng.uci.edu (Joe Tien)
  8. Organization: University of California, Irvine
  9. Lines: 16
  10. Date: 21 Aug 92 01:39:11 GMT
  11.  
  12.  
  13. Hello everyone,
  14.  
  15. I was looking at the floating point library (floatlib.c) in gcc-2.2.2 and noticed
  16. that the bias (called EXCESS and EXCESSD in gcc's floatlib.c) for single and double precision floating number exponents are 126 and 1022, respectively. The IEEE floating point standard says they should be 127 and 1023. Why is that?
  17.  
  18. I know this is a stupid question and there must be a very simple answer to it since it can't be a typo (otherwise it would have been caught a long time ago). But I can figure it out and would really appreciate some help on the reason behind
  19. it.
  20.  
  21. Since this is such a dumb question, you can reply to me at: 
  22.         
  23.         jtien@balboa.eng.uci.edu
  24.  
  25. Thanks again,
  26.  
  27. Joe Tien
  28.