TorchLean API

FloatLib.Floats.Formats.BinaryInterchange.DirectedSemantics.Multiplication

Directed multiplication soundness for conventional IEEE formats #

For finite operands, mulDown and mulUp round the same exact dyadic product in opposite directions. The extended-real statements remain valid when outward rounding overflows.

The bounds hold for every descriptor satisfying fmt.isIEEE = true, with no restriction to named widths. Both operands must be finite; the rounded product may be infinite.

Downward-rounded multiplication is a lower bound on the exact real product.

The exact real product is bounded above by upward-rounded multiplication.