def METHOD_NAME(self):
    """A double is written as 8 bytes.
    The double is converted into a 64-bit integer using a method equivalent
    to Java's doubleToLongBits and then encoded in little-endian format.
    """
    return unpack("<d", self.fo.read(8))[0]