def intpercent(myinteger: int, percent: float, add_px=0):
    """Returns a percent of an integer as an integer.

    Args:
        myinteger (int): Integer to take percent of.
        percent (float): Percent to return.
        add_px (int): Add scalar amount to final value.

    Returns:
        output (int): Final value
    """
    output = round((myinteger * percent), 2)
    output = int(output + add_px)

    return output