# [`⌊`](https://bpl.fast.ai//glyphs/downstile.html) — Floor / Minimum

Function. Keys: `Alt-d`. Hanzi: `下`. Ranks: `0` monadic, `0 0` dyadic

`⌊Y` rounds real numbers down. Pervasive; tolerant near integers. Under dynamic kinds, real float results become ordinary machine integers. Under static kinds they remain floats. `⌊ₓY` gives ordinary machine integers in both modes. Exact numbers stay exact.

Integer-producing real forms clamp to the selected integer range: positive infinity gives its maximum, negative infinity its minimum, and NaN gives zero. See [Static kinds](../numbers.md#static-kinds) for the integer width.

```bpl
⌊1.8 ¯1.8         ⍝ [1 ¯2]ₓ
⌊3r2              ⍝ 1ᵣ
```

Complex floor uses APL's Gaussian-integer rule.

```bpl
⌊1.5j0.5          ⍝ 1j1
```

`X⌊Y` takes the real minimum, and for characters the one with the lower code point. A number is less than any character, as [`⍋`](delta-stile.md) orders them. Pervasive. Beside NaN it gives NaN or the other argument. Which one can vary by platform. A reduction, scan, window or inner product by [`⌊`](https://bpl.fast.ai//glyphs/downstile.html), or an assignment by `⌊←` to one position more than once, gives NaN or the least of the items that aren't NaN, [`∞`](https://bpl.fast.ai//glyphs/infinity.html) where there are none, and never another number. Empty reduction identity: [`∞`](https://bpl.fast.ai//glyphs/infinity.html).

```bpl
3⌊1 5             ⍝ 1 3
"abc"⌊"bab"       ⍝ "aab"
3⌊'a'             ⍝ 3
```
