(x, xbits, base, bdigits)
return x * (MPZ(base)**bdigits) >> xbits
Changes radix of a fixed-point number; i.e., converts
    x * 2**xbits to floor(x * 10**bdigits).
Changes radix of a fixed-point number; i.e., converts
    x * 2**xbits to floor(x * 10**bdigits).
Changes radix of a fixed - point number ; i . e . converts x * 2 ** xbits to floor ( x * 10 ** bdigits ) .
def bin_to_radix(x, xbits, base, bdigits):
    """Changes radix of a fixed-point number; i.e., converts
    x * 2**xbits to floor(x * 10**bdigits)."""
    return x * (MPZ(base)**bdigits) >> xbits
def bin_to_radix ( x , xbits , base , bdigits ) : return x * ( MPZ ( base ) ** bdigits ) >> xbits