Sticky flags and scoped rounding laws #
Flags raised by an operation remain set after later operations. Clearing and restoring affect exactly the requested group. Scoped rounding restores the caller's direction while preserving the flags produced by the inner computation.
Restoring every flag from a snapshot replaces the flags and keeps the rounding direction.
Exception accumulation never changes the operation's delivered datum.
An operation preserves the ambient rounding direction.
A flag after execution is the disjunction of its previous and newly raised states.
Two operations accumulate the union of both outcomes and the initial flags.
Scoped rounding restores the caller's direction, regardless of the inner computation.
Scoped rounding preserves the inner computation's resulting exception flags.