def represents_int(s, acceptRoundedFloats=False):
    """
        This function return True if the given param (string or float) represents a int

        :Example:
        >>> represents_int(1)
        True
        >>> represents_int("1")
        True
        >>> represents_int("a")
        False
        >>> represents_int("1.1")
        False
        >>> represents_int(1.1)
        False
        >>> represents_int(42.0, acceptRoundedFloats=True)
        True
        >>> represents_int("42.0", acceptRoundedFloats=True)
        True
    """

    if isinstance(s, float):
        if acceptRoundedFloats:
            return s.is_integer()
    else:
        if acceptRoundedFloats:
            try:
                s = float(s)
                return represents_int(s, acceptRoundedFloats=acceptRoundedFloats)
            except ValueError:
                return False
        else:
            try:
                int(s)
                return True
            except ValueError:
                return False
    return False