From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2accddaf79d770d X-Google-Attributes: gid1164f8,public From: jcrowell@dcn.davis.ca.us (John M. Crowell) Subject: Re: PDP 11/24 floating point format Date: 1996/06/12 Message-ID: <4pmmqv$jhc@mark.ucdavis.edu>#1/1 X-Deja-AN: 159843243 references: <4phse0$77a@sanjuan.islandnet.com> organization: Davis Community Network newsgroups: comp.sys.dec In article <4phse0$77a@sanjuan.islandnet.com>, Rene Chave 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 ---------------------------------------------------------------------