import math


def int_log(x: float, base: float = math.e) -> int:
    """Finds the nearest integer to ``log(x, base)``.

    Args:
        x: The number whose logarithm will be found.
        base: The numeric base of the logarithm.

    Returns:
        The result of rounding ``log(x, base)`` to the nearest integer.
    """
    return int(round(math.log(float(x), float(base))))