Floor function: Difference between revisions
Appearance
Created page with "The '''floor function''', often denoted by $\lfloor \ \rfloor$, finds the largest integer no larger than a real number. {{Hidden example}} $$ \lfloor 4.5 \rfloor = 4 \\ \lfloor \pi \rfloor = 3 \\ \lfloor -1 \rfloor = -1 \\ $$ {{End hidden}} == Formal definition == $$ \lfloor \ \rfloor: \mathbb{R} \to \mathbb{N},\\ \forall x \in \mathbb{R},\, \lfloor x \rfloor = \begin{cases} x, & x \in \mathbb{N},\\ \max(\{n\in \mathbb{N}| n<x\}), & \text{elsewise}. \end{cases} $$" |
No edit summary |
||
| Line 1: | Line 1: | ||
The '''floor function''', often denoted by $\lfloor \ \rfloor$, finds the largest integer no larger than a real number. | The '''floor function''', often denoted by $\lfloor \ \rfloor$, finds the largest integer no larger than a [[real number]]. | ||
{{Hidden example}} | {{Hidden example}} | ||
| Line 12: | Line 12: | ||
$$ | $$ | ||
\lfloor \ \rfloor: \mathbb{R} \to \mathbb{ | \lfloor \ \rfloor: \mathbb{R} \to \mathbb{Z},\\ | ||
\forall x \in \mathbb{R},\, \lfloor x \rfloor = | \forall x \in \mathbb{R},\, \lfloor x \rfloor = | ||
\begin{cases} | \begin{cases} | ||
x, & x \in \mathbb{ | x, & x \in \mathbb{Z},\\ | ||
\max(\{ | \max(\{z\in \mathbb{Z}| z<x\}), & \text{elsewise}. | ||
\end{cases} | \end{cases} | ||
$$ | $$ | ||
== See also == | |||
* [[ceiling function]] | |||
* [[function]] | |||
Latest revision as of 17:18, 26 October 2026
The floor function, often denoted by $\lfloor \ \rfloor$, finds the largest integer no larger than a real number.
Formal definition
$$\begin{gathered} \lfloor \ \rfloor: \mathbb{R} \to \mathbb{Z},\\ \forall x \in \mathbb{R},\, \lfloor x \rfloor = \begin{cases} x, & x \in \mathbb{Z},\\ \max(\{z\in \mathbb{Z}| z<x\}), & \text{elsewise}. \end{cases} \end{gathered}$$