def dec_to_bin(decimal: int) -> int:
    """
    Converts a decimal integer to binary
    :param decimal: An integer
    :return: A binary number
    """
    remainder_str = ""

    while decimal != 0:
        remainder_str += str(decimal % 2)
        decimal //= 2

    return int(remainder_str[::-1])