home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / c / 12965 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  2.3 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!ucsbcsl!network.ucsd.edu!sdd.hp.com!uakari.primate.wisc.edu!usenet.coe.montana.edu!Ercvx1.erc.montana.edu!osymg
  2. From: osymg@Ercvx1.erc.montana.edu (Marcus Giese)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: vax floating point bit structure
  5. Message-ID: <0095FD5E.5E2ABCA0@Ercvx1.erc.montana.edu>
  6. Date: 30 Aug 92 03:02:07 GMT
  7. References: <1992Aug28.121613.592@hou.amoco.com>
  8. Sender: usenet@coe.montana.edu (USENET News System)
  9. Reply-To: osymg@Ercvx1.erc.montana.edu (Marcus Giese)
  10. Organization: NEWSRDR-testing
  11. Lines: 57
  12.  
  13. In article <1992Aug28.121613.592@hou.amoco.com>, 
  14. zrwb14@hou.amoco.com (Randy Byrne) writes:
  15. >Since this is just about the largest "comp" user group I thought I'd try 
  16. >posting this question here:  Does anyone know what the bit structure of a 
  17. >VAX floating point number is?  The only information 
  18. [...]
  19. >
  20. >Randy
  21. >
  22. I *think* the following is correct, but if I were you, I'd a get a VAX
  23. architecture handbook...
  24.  
  25. h_floating:
  26.         0 - 14    exponent
  27.         15        sign
  28.         16 - 127  fraction
  29.  
  30.         Sinificance increases from 112-127, 96-111, 80-95, etc., normalized
  31.         all fractions are "broken up" into 16bit word sizes
  32.  
  33. g_floating:
  34.         0 - 3     fraction
  35.         4 - 14    exponent
  36.         15        sign
  37.         16 - 63   fraction
  38.  
  39.         Significance increases from 48-63, 32-47, 16-31, 0-3, normalized
  40.         all fractions are "broken up" into 16bit word sizes
  41.  
  42. d_floating (don't quote me on this one):
  43.         0 - 6     fraction
  44.         7 - 14    exponent
  45.         15        sign
  46.         16 - 63   fraction
  47.  
  48.         Significance increases from 48-63, 32-47, 16-31, 0-6
  49.         all fractions are "broken up" into 16bit word sizes
  50.  
  51. f_floating:
  52.         0 - 6     fraction
  53.         7 - 14    exponent
  54.         15        sign
  55.         16 - 31   fraction
  56.  
  57.         Significance increases from 16-31, 0-6, normalized
  58.  
  59.  
  60. The f and g floating are also supported on the ALPHA, the other two are
  61. not (I think).
  62.                                 Marcus
  63.  
  64. ps: I think values of 1-255 for the exponent are true binary -127->+127
  65.  
  66. |Marcus Giese|osymg@cs.montana.edu|osymg@terra.oscs.montana.edu|(406)994-3932|
  67. ------------------------------------------------------------------------------
  68. "If they're selling elephants two for a quarter, that's a great bargain.
  69.  But only if you have a quarter - and only if you need elephants." (D.Dinkins)
  70.