home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / misc / 3849 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.4 KB

  1. Path: sparky!uunet!mcsun!sun4nl!cwi.nl!dik
  2. From: dik@cwi.nl (Dik T. Winter)
  3. Newsgroups: comp.lang.misc
  4. Subject: Re: Binary floating point
  5. Message-ID: <7978@charon.cwi.nl>
  6. Date: 24 Nov 92 01:52:20 GMT
  7. References: <By4EM9.7qn@mentor.cc.purdue.edu> <1eou72INNe14@network.ucsd.edu> <By67JE.CCz@mentor.cc.purdue.edu>
  8. Sender: news@cwi.nl
  9. Organization: CWI, Amsterdam
  10. Lines: 22
  11.  
  12. In article <By67JE.CCz@mentor.cc.purdue.edu> hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  13.  > >1000101110010 B 0010101010
  14.  > 
  15.  > This is the general idea.  However, something a little more flexible and
  16.  > taking a little less time to type, transmit, etc., would be in order.
  17.  > Typing 64 0's and 1's is too much of a chore, and also increases the
  18.  > chance of error.
  19.  > 
  20.  > Unfortunately, natural notation like using E for exponent runs into 
  21.  > problems.  A suggestion:  extend the present octal (I see problems
  22.  > here for numbers less than 1; maybe they should start with 00) and
  23.  > hex notation to allow an "integer point" to be inserted as well, and
  24.  > use P for power of 2 by which the resulting fixed-point number is
  25.  > to be multiplied.
  26.  
  27. You know what Herman.  There are languages that provide what you want!
  28. Ada:  13#c.18644#e+12
  29. meens c.18644 in base 13 notation multiplied by 13 to the power 12.
  30. Fairly general I would think.
  31. -- 
  32. dik t. winter, cwi, kruislaan 413, 1098 sj  amsterdam, nederland
  33. home: bovenover 215, 1025 jn  amsterdam, nederland; e-mail: dik@cwi.nl
  34.