converting 64-bit fixed-point to float

Michael Tobis mtobis at gmail.com
Fri Jul 20 22:15:23 EDT 2007


It appears to be correct for positive numbers.

if conval >= 2**16:
   conval -= 2**32

would appear to patch things up.

It's not very pretty, though. You could at least start with

input1 = [c_ushort(item) for item in input]

instead of your first 9 lines.

mt




More information about the Python-list mailing list