def strbin2dec(strbin):
    """
    Convert a string representing a binary value into a 
    string representing the same value in decimal format.
    """
    strdec = "0"
    for i in range(1, strbin.__len__()+1):
        strdec = str(int(strdec)+int(strbin[-i])*int(pow(2, i-1)))
    return strdec