Hello,
I've read some bytes from a file and just now I can't interpret 4 bytes
in this dates like a real value.
An extract from my program
def l32(c):
return ord(c[0]) + (ord(c[1])<<8) + (ord(c[2])<<16) + (ord(c[3])<<24)
....
value = l32(f.read(4)) <--- 3F 8C CC CD should be 1.11
Anybody an answer ?
regards
gf
I've read some bytes from a file and just now I can't interpret 4 bytes
in this dates like a real value.
An extract from my program
def l32(c):
return ord(c[0]) + (ord(c[1])<<8) + (ord(c[2])<<16) + (ord(c[3])<<24)
....
value = l32(f.read(4)) <--- 3F 8C CC CD should be 1.11
Anybody an answer ?
regards
gf
Comment