Floor and ceiling functions
= Floor and ceiling functions
{wiki=Floor_and_ceiling_functions}
The floor and ceiling functions are mathematical functions that map real numbers to integers. \#\#\# Floor Function The **floor function**, denoted as \\( \\lfloor x \\rfloor \\), is defined as the greatest integer less than or equal to \\( x \\). In other words, it "rounds down" a real number to the nearest integer. **Example:** - \\( \\lfloor 3.7 \\rfloor = 3 \\) - \\( \\lfloor -2.