Raymond Hettinger <python at rcn.com> writes: > p, q = [('%f' % float.fromhex('0.' + x)) for x in (h[:16], ... Cool, I didn't know about 'fromhex'.