vm-error>exception-flags ( error -- exceptions )
Controlling the floating-point environment

Prev:without-fp-traps ( quot -- )
Next:vm-error-exception-flag? ( error flag -- ? )


Vocabulary
math.floats.env

Inputs and outputs
errora floating-point error object from the Factor VM
exceptionsa sequence of fp-exception symbols


Word description
When a floating-point trap is raised, the Factor VM reports the trap by throwing a Factor exception containing the exception flags at the time the trap was raised. This word extracts the exception flag information from error and converts it into a sequence of fp-exceptions.

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

Definition