def _exponent(dval):
 bb = _double_as_bytes(dval)
 return (((bb[0] << 4) | (bb[1] >> 4)) & 2047)

def _exponent ( dval ) : bb = _double_as_bytes ( dval ) return ( ( ( bb [ 0 ] << 4 ) | ( bb [ 1 ] >> 4 ) ) & 2047 )
extract the exponentent bits from a double-precision floating point value .