def percent_used(used, total, decimal=2):
    """
    Return percent used by giving total and used value.

    :param used: Used value.
    :type used: Integer
    :param total: Total value.
    :type total: Integer
    :return: Float for percent used.
    :rtype: Float
    """
    pused = round((100. / total) * used, decimal)
    return pused