# Floor function (floor)

Greatest whole number not above a number.

## How to write it

### floor(x)

**x**

A number. Takes a number.

## Examples

- $\displaystyle \lfloor 3.7 \rfloor = 3$

  `floor(3.7)`

  In the solver, `floor(3.7)` gives `3`.

  [Open in the solver](https://hilberon.com/?q=floor%283.7%29)
- $\displaystyle \lfloor -1.5 \rfloor = -2$

  `floor(-1.5)`

  In the solver, `floor(-1.5)` gives `-2`.

  [Open in the solver](https://hilberon.com/?q=floor%28-1.5%29)

## Related functions

- [frac](https://hilberon.com/library/frac)

  Fractional part of a number.
- [factorial](https://hilberon.com/library/factorial)

  Factorial: n! is the product of the whole numbers from 1 to n.
- [gcd](https://hilberon.com/library/gcd)

  Greatest common divisor of whole numbers.
- [exp](https://hilberon.com/library/exp)

  Exponential function; exp(x) is the power e^x.
- [im](https://hilberon.com/library/im)

  Imaginary part of a complex number.
- [double_factorial](https://hilberon.com/library/double_factorial)

  Double factorial: n!! multiplies every second number down from n.

---
Source: https://hilberon.com/library/floor
