def max_decimal_value_of_binary(num_of_bits):
    """
    get max decimal value of a binary string with a fixed length

    :param num_of_bits: # of bits
    :type num_of_bits: int
    :return: max decimal value
    :rtype: int
    """
    return int('1'*num_of_bits, base=2)