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

  1. Path: sparky!uunet!olivea!charnel!rat!ucselx!network.ucsd.edu!poincare.ucsd.edu!mbk
  2. From: mbk@poincare.ucsd.edu (Matt Kennel)
  3. Newsgroups: comp.lang.misc
  4. Subject: Re: languages which allow the introduction of new operators
  5. Message-ID: <1eou72INNe14@network.ucsd.edu>
  6. Date: 22 Nov 92 21:31:14 GMT
  7. References: <By4EM9.7qn@mentor.cc.purdue.edu>
  8. Organization: Institute For Nonlinear Science, UCSD
  9. Lines: 44
  10. NNTP-Posting-Host: poincare.ucsd.edu
  11. X-Newsreader: Tin 1.1 PL3
  12.  
  13. hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
  14. : In article <722322705@sheol.UUCP> throopw@sheol.UUCP (Wayne Throop) writes:
  15. :             ...................
  16. :                   e can communicate binary integers across machines
  17. : >: and implementations; the much used notation 0ddddd for octal and
  18. : >: 0xdddddddd for hexadecimal, bad as they are, do this explicitly.
  19. : >
  20. : >So, what does this have to do with the semantic model of the language?
  21. : >What prevents one from converting the floats to binary representation
  22. : >in ascii, transmitting that, reading the result, and doing the
  23. : >inverse conversion?
  24. : This will not do the job.   The binary representations of floats on
  25. : CRAYs, CYBERs, VAXen, RS/6000s, etc., are all different.  Also, these
  26. : are only the representations of floats within the precision of the
  27. : machine.  In addition, there is NO remotely standard fixed-point 
  28. : binary representation of non-integers which can be communicated.
  29.  
  30. Most digital computers have binary floating point, so
  31. some number like
  32.  
  33. +/- B1 * 2^(B2),
  34.  
  35. with b1 a number between 0 and 1 expressed as a binary fraction,
  36. and b2 an integer ought to do the trick.  It is proabably very
  37. ugly, but isn't this the right idea?
  38.  
  39. In the "fortran E exponent model" (from 1959 or so!)
  40.  
  41. 1000101110010 B 0010101010
  42.  
  43. : -- 
  44. : Herman Rubin, Dept. of Statistics, Purdue Univ., West Lafayette IN47907-1399
  45. : Phone: (317)494-6054
  46. : hrubin@snap.stat.purdue.edu (Internet, bitnet)  
  47. : {purdue,pur-ee}!snap.stat!hrubin(UUCP)
  48.  
  49. --
  50. -Matt Kennel          mbk@inls1.ucsd.edu
  51. -Institute for Nonlinear Science, University of California, San Diego
  52. -*** AD: Archive for nonlinear dynamics papers & programs: FTP to
  53. -***     lyapunov.ucsd.edu, username "anonymous".
  54.