ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: floor
Type: (RealFrac a, Integral b) => a -> b
Class: RealFrac
Description: returns the greatest integer not greater than argument
Related: ceiling, properFraction, round, truncate
Keywords: floor
MATHWORLD Floor Function

Example 1

Input: floor 3

Output: 3

Example 2

Input: floor 3.7

Output: 3

Example 3

Input: floor 3.000001

Output: 3

Example 4

Input: floor (-4.999)

Output: -5