import math


def myfloor(number: float) -> int:
    """We take as input a real number and give as output the greatest integer less than or equal to the number 

    >>> myfloor(2.4)
    2
    >>> myfloor(2)
    2
    >>> myfloor(2.0)
    2
    >>> myfloor(-3.1)
    -4
    """

    #if number >= 0:
    #    return int(number)
    #else:
    #    if (abs(number) - int(abs(number)) > 0):
    #        return int(number) - 1
    #    else:
    #        return int(number)

    return math.floor(number)