Rounded Arithmetic on Mantissa/Exponent Values #
Rounded arithmetic on FloatRep values uses exact representation operations where finite radix
expansions suffice. Addition, subtraction, and multiplication first use their exact FloatRep
operations. Division and square root need not have finite radix expansions, so they are formed
over the reals and rounded directly into the selected format.
These definitions model finite rounded arithmetic. IEEE exceptional behavior for zero divisors,
negative square roots, infinities, and NaNs belongs to FloatLib.Floats.ExecFloat.
Exact addition followed by rounding into the selected format.
Instances For
Exact subtraction followed by rounding into the selected format.
Instances For
Exact multiplication followed by rounding into the selected format.
Instances For
Exact real division followed by rounding into the selected format.
Instances For
Exact real square root followed by rounding into the selected format.
Instances For
Rounded addition denotes real addition followed by the selected format rounding.
Rounded subtraction denotes real subtraction followed by the selected format rounding.
Rounded multiplication denotes real multiplication followed by the selected format rounding.
Rounded division denotes real division followed by the selected format rounding.
Rounded square root denotes real square root followed by the selected format rounding.