def _toIEEEFloat(value: float) -> bytes: bitval = Float16Compressor.compress(value) return bytes([(bitval & 0xFF00) >> 8, bitval & 0xFF])