NLA-lib Explorer

NLAlib.gridRoundOdd

Library · def

Odd rounding to nearest onto the t-bit grid with unbounded exponent: \mathrm{fl}(\mathbf{x}) for \mathbf{x} \ge 0 and -\mathrm{fl}(-\mathbf{x}) below, Real.roundNearest with ties away from zero.

NLAlib.gridRoundOdd (t : ℕ) (x : ℝ) : ℝ

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.GridMachine.