Low-level rational rounding primitives #
Format-independent executable quotient operations support nearest-even and directed rational
rounding. The quotient layer stays below Model.Arithmetic, allowing native arithmetic kernels
to reuse their proofs without creating an import cycle through the public dispatcher.
@[inline]
Ceiling of a natural quotient, totalized to zero at a zero denominator.
Instances For
@[inline]
def
FloatLib.Floats.Formats.BinaryInterchange.Model.roundQuotDirected
(roundUp : Bool)
(numerator denominator : Nat)
:
Round a nonnegative quotient to an integer, selecting floor or ceiling.