import math


def expand_box_to_integer(box):
    """
    :param box: x1,y1,x2,y2
    :return: floor(x1), floor(y1), ceil(x2), ceil(y2)
    """
    x1, y1, x2, y2 = box
    x1 = math.floor(x1)
    y1 = math.floor(y1)
    x2 = math.ceil(x2)
    y2 = math.ceil(y2)
    return x1, y1, x2, y2