Return True if x <= y and False otherwise.

    This function returns False whenever x and/or y is a NaN.

def lessequal(x, y):
    """
    Return True if x <= y and False otherwise.

    This function returns False whenever x and/or y is a NaN.

    """
    x = BigFloat._implicit_convert(x)
    y = BigFloat._implicit_convert(y)
    return mpfr.mpfr_lessequal_p(x, y)