with-fp-traps ( exceptions quot -- )
Controlling the floating-point environment

Prev:fp-traps ( -- exceptions )
Next:without-fp-traps ( quot -- )


Vocabulary
math.floats.env

Inputs
exceptionsa sequence of fp-exceptions
quota quotation


Outputs
None

Word description
Clears the floating-point exception flags and replaces the exception mask, enabling processor traps for the set of exception conditions specified in exceptions for the dynamic extent of quot. The original exception mask is restored on quot's completion.

See also
fp-traps, without-fp-traps, vm-error>exception-flags, vm-error-exception-flag?

Definition