import math


def int_sqrt(x: float) -> int:
    """Finds the nearest integer to the square root of ``x``.

    Args:
        x: The number whose square root will be found.

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