NLA-lib Explorer

Float.Model.Format.unitRoundoff

Library · def

The unit roundoff of a format \mathcal{F} with significand precision \operatorname{prec}(\mathcal{F}) is 2^{-\operatorname{prec}(\mathcal{F})}. Correct normal rounding has relative error at most this quantity.

Float.Model.Format.unitRoundoff (spec : Float.Model.Format) : ℝ

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.Basic.