import struct def float_bin(number): return bin(struct.unpack('