> # convert to byte string, via the array module > import array, struct > a = array.array("B", [int(c, 16) for c in x]) > v = struct.unpack("!f", ) eh? should be: # convert to byte string, via the array module import array, struct a = array.array("B", [int(c, 16) for c in x]) v = struct.unpack("!f", a) </F>