from xlwt import * import sys from struct import pack, unpack def cellname(rowx, colx): # quick kludge, works up to 26 cols :-) return chr(ord('A') + colx) + str(rowx + 1) def RK_pack_check(num, anint, case=None): if not(-0x7fffffff - 1 <= anint <= 0x7fffffff): print "RK_pack_check: not a signed 32-bit int: %r (%r); case: %r" \ % (anint, hex(anint), case) pstr = pack(">= 2 # div by 4 to drop the 2 flag bits if flags & 1: return i / 100.0 return float(i) else: # It's the most significant 30 bits of an IEEE 754 64-bit FP number d, = unpack('