Returns the integer part of the number n.
floor(n)
The floor function returns the integer part of a number. For example, the floor of returns the integer . The function is useful for truncating numbers.
floor(6.28) = 6
floor(1.3) = 1
floor(0.8) = 0
floor(7.813) = 7
floor(16.21) = 16