import math


def floor_to(num: float, tnum: float) -> float:
    """
    Floors num to nearest tnum
    :param num: number to round (must be float/int)
    :param tnum: target number to round to (must be float/int)
    :return: rounded number
    """
    return math.floor(num / tnum) * tnum