import struct
a = struct.pack('dd', 1.0, 1.000001)
b = struct.unpack('ll', a)
b[1] - b[0]
a = struct.pack('dd', 1.0, 1.000000001)
b = struct.unpack('ll', a)
b[1] - b[0]
Number of floats between two floats