In Python, floor() and ceil() are mathematical functions provided by the math module.
math.floor(x) returns the largest integer less than or equal to x, effectively rounding down any decimal value. For example, math.floor(3.7) would return 3.
math.ceil(x) returns the smallest integer greater than or equal to x, effectively rounding up any decimal value. For example, math.ceil(3.2) would return 4.
Both functions are useful for controlling the rounding of numbers when performing mathematical or financial calculations. They only work with numerical inputs.