def rem(x, y):
    """
    Returns the remainder of x/y, when the quotient is rounded to the nearest integer.

    Args:
        x(float): dividend.
        y(float): divisor.

    """
    return x % y
