Find the greatest integer less than or equal to a number
Enter any real number (positive, negative, or decimal) to find its floor value. The floor function rounds down to the nearest integer.
The floor function always rounds down to the nearest integer. For a positive number, it's like removing the decimal part. For a negative number, it rounds to the 'more negative' integer.
a // b
is often equivalent to floor(a/b)
.row = floor(index / columns)
.floor((current_date - birth_date) / 365.25)
. This correctly handles not having passed one's birthday yet in the current year.