NLA-lib Explorer

Float.Model.UnpackedFloat.totalExponent_eq

Library · theorem

The total exponent is the binary logarithm of the mantissa plus one and the exponent.

Float.Model.UnpackedFloat.totalExponent_eq (m : ℕ) (e : ℤ) :
  Float.Model.totalExponent m e = ↑m.log2 + 1 + e

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.Rounding.