NLA-lib Explorer

NLAlib.Computation.fixedPointRound

Library · def

Round a rational down to the fixed-point grid and reject a rounded out-of-range word.

NLAlib.Computation.fixedPointRound (scale limit : ℕ) (a : ℚ) : Option (Computation.FixedPoint limit)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.FixedPoint.