Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: jcrowell@dcn.davis.ca.us (John M. Crowell)
Subject: Re: PDP 11/24 floating point format
Date: 1996/06/12	[thread overview]
Message-ID: <4pmmqv$jhc@mark.ucdavis.edu> (raw)
In-Reply-To: 4phse0$77a@sanjuan.islandnet.com


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
---------------------------------------------------------------------



      reply	other threads:[~1996-06-12  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-10  4:00 PDP 11/24 floating point format Rene Chave
1996-06-12  4:00 ` John M. Crowell [this message]
read-only archive

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