Floor Function

Floor Function
All Functions

Summary

Returns the integer part of the number n.

Syntax

How to use

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

Related Functions

Returns the least integer greater than or equal to the number n.

Returns the nearest integer to the number n.