def i2h(self, pkt, val):
        int_part = val >> self.frac_bits
        frac_part = val & (1 << self.frac_bits) - 1
        frac_part /= 2.0**self.frac_bits
        return int_part+frac_part
dataset/ETHPy150Open phaethon/scapy/scapy/fields.py/FixedPointField.i2h/original