home *** CD-ROM | disk | FTP | other *** search
- 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
- From: osymg@Ercvx1.erc.montana.edu (Marcus Giese)
- Newsgroups: comp.lang.c
- Subject: Re: vax floating point bit structure
- Message-ID: <0095FD5E.5E2ABCA0@Ercvx1.erc.montana.edu>
- Date: 30 Aug 92 03:02:07 GMT
- References: <1992Aug28.121613.592@hou.amoco.com>
- Sender: usenet@coe.montana.edu (USENET News System)
- Reply-To: osymg@Ercvx1.erc.montana.edu (Marcus Giese)
- Organization: NEWSRDR-testing
- Lines: 57
-
- In article <1992Aug28.121613.592@hou.amoco.com>,
- zrwb14@hou.amoco.com (Randy Byrne) writes:
- >Since this is just about the largest "comp" user group I thought I'd try
- >posting this question here: Does anyone know what the bit structure of a
- >VAX floating point number is? The only information
- [...]
- >
- >Randy
- >
- I *think* the following is correct, but if I were you, I'd a get a VAX
- architecture handbook...
-
- h_floating:
- 0 - 14 exponent
- 15 sign
- 16 - 127 fraction
-
- Sinificance increases from 112-127, 96-111, 80-95, etc., normalized
- all fractions are "broken up" into 16bit word sizes
-
- g_floating:
- 0 - 3 fraction
- 4 - 14 exponent
- 15 sign
- 16 - 63 fraction
-
- Significance increases from 48-63, 32-47, 16-31, 0-3, normalized
- all fractions are "broken up" into 16bit word sizes
-
- d_floating (don't quote me on this one):
- 0 - 6 fraction
- 7 - 14 exponent
- 15 sign
- 16 - 63 fraction
-
- Significance increases from 48-63, 32-47, 16-31, 0-6
- all fractions are "broken up" into 16bit word sizes
-
- f_floating:
- 0 - 6 fraction
- 7 - 14 exponent
- 15 sign
- 16 - 31 fraction
-
- Significance increases from 16-31, 0-6, normalized
-
-
- The f and g floating are also supported on the ALPHA, the other two are
- not (I think).
- Marcus
-
- ps: I think values of 1-255 for the exponent are true binary -127->+127
-
- |Marcus Giese|osymg@cs.montana.edu|osymg@terra.oscs.montana.edu|(406)994-3932|
- ------------------------------------------------------------------------------
- "If they're selling elephants two for a quarter, that's a great bargain.
- But only if you have a quarter - and only if you need elephants." (D.Dinkins)
-