NLA-lib Explorer

NLAlib.Computation.binaryFloatRound

Library · def

Binary rounding with gradual underflow. The format's target exponent is the larger of the normal significand exponent and the smallest subnormal exponent. The selector rounds the scaled input to an integer; nearest tie behavior is supplied by its error certificate.

NLAlib.Computation.binaryFloatRound (fmt : Float.Model.Format) (r : ℝ → ℤ) (x : ℝ) : ℝ

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.BinaryFloat.