Skip to content

IntegerFloor ​

The greatest integer at or below x, in a floor ring.

IntegerFloor(x)The greatest integer at or below x, in a floor ring.
Typed signatures
TypePackageApplies
(any) -> unknownstructuresalways

Domain: Structures

Details
  • The FloorRing protocol's member (Mathlib's Int.floor), and what Floor answers for such a type.
  • The right adjoint of the integers' inclusion: an integer nn is at most xx exactly when n≤IntegerFloor(x)n \le \mathrm{IntegerFloor}(x).

Examples

Basic #

⌊−2.5⌋=−3\lfloor -2.5 \rfloor = -3

live ↗
InIntegerFloor(−2.5)\mathrm{IntegerFloor}(-2.5)Out−3-3

⌊7/2⌋=3\lfloor 7/2 \rfloor = 3

live ↗
InIntegerFloor(72)\mathrm{IntegerFloor}(\frac{7}{2})Out33
About
Examples2
Checked againstWolfram Language 2 agree

Implementation

mappedwolframpackages/oracle/src/mappings.ts

See also: IntegerCeil, Floor, LowerTick