def binary_to_decimal(number: int) -> int:
    """Return decimal version of the specified binary number."""
    result = 0

    for index, digit in enumerate(reversed(str(number))):
        if index == 0:
            result += int(digit)
        else:
            result += 2 ** index * int(digit)
    return int(result)