Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* PDP 11/24 floating point format
@ 1996-06-10  4:00 Rene Chave
  1996-06-12  4:00 ` John M. Crowell
  0 siblings, 1 reply; 2+ messages in thread
From: Rene Chave @ 1996-06-10  4:00 UTC (permalink / raw)




I am looking for the floating point format on PDP 11/24. We have some old 
data in this format that I need to translate but I do not have the PDP 
11/24 hardware manual to look up the format. If anyone can help I would 
very much appreciate it.

Thanks in advance.


-- 


Rene Chave 
ASL Environmental Sciences Inc.
1986 Mills Rd.
Sidney B.C.
V8L 5Y3

Voice: (604) 656-0177
Fax:    (604) 656-2162
Email: chave@islandnet.com





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PDP 11/24 floating point format
  1996-06-10  4:00 PDP 11/24 floating point format Rene Chave
@ 1996-06-12  4:00 ` John M. Crowell
  0 siblings, 0 replies; 2+ messages in thread
From: John M. Crowell @ 1996-06-12  4:00 UTC (permalink / raw)



In article <4phse0$77a@sanjuan.islandnet.com>,
   Rene Chave <chave@islandnet.com> wrote:
>
>I am looking for the floating point format on PDP 11/24. We have some old 
>data in this format that I need to translate but I do not have the PDP 
>11/24 hardware manual to look up the format. If anyone can help I would 
>very much appreciate it.
>

The first word of the floating point number is the only problem.

Bit 15 : sign bit (1 => negative)

Bits [14:7]: exponent in excess 200 octal. (i.e. octal 200 => 2**0)

Bits [6:0]: mantissa with the leading 1 removed (since we know it's always 
		gotta be there.


The second word is the rest of the mantissa for single presicion.
For double precision there are two more words of mantissa.

SO, for example, the decimal number 1.0625, in binary notation would be
	.1001 * 2**1

So its floating point representation would be:
	040220, 000000 octal.

	0 1 0 0 0 0 0 0 1 0 0 1 0 0 0 0
        | \------+------/ \-----+-----/
        |        |              |_ mantissa 10010000
        |        |__exponent 200 + 1
        |_ sign

nuff said.

---------------------------------------------------------------------
John M. Crowell                      Learn from the Past
Davis Community Network                Live for Today
jcrowell@dcn.davis.ca.us                  Look to Tomorrow
                                           Take a Nap this Afternoon
---------------------------------------------------------------------



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-06-12  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-10  4:00 PDP 11/24 floating point format Rene Chave
1996-06-12  4:00 ` John M. Crowell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox