Floor Function

Summary

Returns the integer part of the number n.

Syntax

floor(n)

Usage

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

Examples

 floor(1.3) = 1
 floor(0.8) = 0
 floor(7.813) = 7
 floor(16.21) = 16