Re: unpack('>f', b'\x00\x01\x00\x00')

2011-12-02 Thread Mark Dickinson
On Dec 1, 10:21 am, Hrvoje Niksic wrote: > Chris Rebert writes: > > C does not have a built-in fixed-point datatype, so the `struct` > > module doesn't handle fixed-point numbers directly. > > The built-in decimal module supports fixed-point arithmetic, but the > struct module doesn't know about

Re: unpack('>f', b'\x00\x01\x00\x00')

2011-12-01 Thread Hrvoje Niksic
Chris Rebert writes: > C does not have a built-in fixed-point datatype, so the `struct` > module doesn't handle fixed-point numbers directly. The built-in decimal module supports fixed-point arithmetic, but the struct module doesn't know about it. A bug report (or patch) by someone who works wi

Re: unpack('>f', b'\x00\x01\x00\x00')

2011-11-30 Thread Ian Kelly
On Wed, Nov 30, 2011 at 3:24 PM, kuaile xu wrote: > Hi: > > I am working on a python script that parses mp4 video header. Once of > the field is a 32-bit fixed-point number. > > I know that the four bytes are: 00, 01, 00, 00. I have a third party > mp4 parsing program which displays this field's v

Re: unpack('>f', b'\x00\x01\x00\x00')

2011-11-30 Thread kuaile xu
On Nov 30, 6:02 pm, Chris Rebert wrote: > On Wed, Nov 30, 2011 at 2:24 PM, kuaile xu wrote: > > Hi: > > > I am working on a python script that parses mp4 video header. Once of > > the field is a 32-bit fixed-point number. > > > I know that the four bytes are: 00, 01, 00, 00. I have a third party

Re: unpack('>f', b'\x00\x01\x00\x00')

2011-11-30 Thread Chris Rebert
On Wed, Nov 30, 2011 at 2:24 PM, kuaile xu wrote: > Hi: > > I am working on a python script that parses mp4 video header. Once of > the field is a 32-bit fixed-point number. > > I know that the four bytes are: 00, 01, 00, 00. I have a third party > mp4 parsing program which displays this field's v