import math


def truncate_floor(number, decimals):
    """Truncates decimals to floor based on given parameter

    Arguments:
        number {float} -- number to truncate
        decimals {int} -- number of decimals

    Returns:
        float -- truncated number
    """
    return math.floor(number * 10 ** decimals) / 10 ** decimals