home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / misc / 3842 < prev    next >
Encoding:
Text File  |  1992-11-22  |  2.0 KB  |  53 lines

  1. Newsgroups: comp.lang.misc
  2. Path: sparky!uunet!think.com!spool.mu.edu!news.nd.edu!mentor.cc.purdue.edu!pop.stat.purdue.edu!hrubin
  3. From: hrubin@pop.stat.purdue.edu (Herman Rubin)
  4. Subject: Binary floating point
  5. Message-ID: <By67JE.CCz@mentor.cc.purdue.edu>
  6. Sender: news@mentor.cc.purdue.edu (USENET News)
  7. Organization: Purdue University Statistics Department
  8. References: <By4EM9.7qn@mentor.cc.purdue.edu> <1eou72INNe14@network.ucsd.edu>
  9. Date: Mon, 23 Nov 1992 13:16:26 GMT
  10. Lines: 41
  11.  
  12. In article <1eou72INNe14@network.ucsd.edu> mbk@poincare.ucsd.edu (Matt Kennel) writes:
  13. >hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  14. >: In article <722322705@sheol.UUCP> throopw@sheol.UUCP (Wayne Throop) writes:
  15.  
  16. >:             ...................
  17.  
  18. >:                   e can communicate binary integers across machines
  19. >: >: and implementations; the much used notation 0ddddd for octal and
  20. >: >: 0xdddddddd for hexadecimal, bad as they are, do this explicitly.
  21.  
  22.             .....................
  23.  
  24. >Most digital computers have binary floating point, so
  25. >some number like
  26.  
  27. >+/- B1 * 2^(B2),
  28.  
  29. >with b1 a number between 0 and 1 expressed as a binary fraction,
  30. >and b2 an integer ought to do the trick.  It is proabably very
  31. >ugly, but isn't this the right idea?
  32.  
  33. >In the "fortran E exponent model" (from 1959 or so!)
  34.  
  35. >1000101110010 B 0010101010
  36.  
  37. This is the general idea.  However, something a little more flexible and
  38. taking a little less time to type, transmit, etc., would be in order.
  39. Typing 64 0's and 1's is too much of a chore, and also increases the
  40. chance of error.
  41.  
  42. Unfortunately, natural notation like using E for exponent runs into 
  43. problems.  A suggestion:  extend the present octal (I see problems
  44. here for numbers less than 1; maybe they should start with 00) and
  45. hex notation to allow an "integer point" to be inserted as well, and
  46. use P for power of 2 by which the resulting fixed-point number is
  47. to be multiplied.
  48. -- 
  49. Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907-1399
  50. Phone: (317)494-6054
  51. hrubin@snap.stat.purdue.edu (Internet, bitnet)  
  52. {purdue,pur-ee}!snap.stat!hrubin(UUCP)
  53.