Newsgroups: comp.lang.python
From: b...@oz.net (Bengt Richter)
Date: 2 Dec 2003 22:17:42 GMT
Local: Tues, Dec 2 2003 5:17 pm
Subject: Re: Extract double in binary file
On 2 Dec 2003 09:40:50 -0800, pascal.par...@free.fr (Pascal) wrote:
>A very big thanks to you. According to an old MASM 5.0 programmer's guide, there was a Microsoft Binary format >The function run perfectly (after python 2.3! installed for enumerate function) >If you can, give me more details on the methode or the number's representation. >Thanks a lot! for encoding real numbers, both short (32 bits) and long (64 bits). There were 3 parts: 1. Biased 8-bit exponent in the highest byte (last in the little-endian view we've been using) 2. Sign bit (0 for +, 1 for -) in upper bit of second highest byte. 3. All except the first set bit of the mantissa in the remaining 7 bits of the second highest byte, MASM also supported a 10-byte format similar to IEEE. I didn't see anything in that section HTH Regards, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||