NLA-lib Explorer

Float.Model.Format.maxExponentBound

Library · def

The upper exponent bound is <!-- value Float.Model.Format.maxExponentBound \mathcal{F} --> 2^{\operatorname{ebits}(\mathcal{F})}-2- \operatorname{bias}(\mathcal{F})-(\operatorname{prec}(\mathcal{F})-1)\,. Here \operatorname{ebits} counts exponent bits and \operatorname{bias} is their bias. It is the largest finite significand exponent for layouts with at least two exponent bits; one-bit layouts have no normal values. The value is 971 for binary64 and 104 for binary32.

Float.Model.Format.maxExponentBound (spec : Float.Model.Format) : ℤ

Full source on GitHub

Import NLAlib.ForMathlib.Data.Float.Basic.