Handbook
Glossary
collect-fp-exceptions ( quot -- exceptions )
Controlling the floating-point environment
Prev:
clear-fp-exception-flags ( -- )
Next:
fp-traps ( -- exceptions )
Vocabulary
math
.
floats
.
env
Inputs
quot
a
quotation
Outputs
exceptions
a
sequence
of
fp-exception
s
Word description
Clears the floating-point exception flags and then calls
quot
, returning the set of floating-point exceptions raised during its execution and placing them on the datastack on
quot
's completion.
See also
fp-exception-flags
,
set-fp-exception-flags
,
clear-fp-exception-flags
Definition
USING:
kernel
;
IN:
math.floats.env
:
collect-fp-exceptions
( quot -- exceptions )
[
clear-fp-exception-flags
]
dip
call
fp-exception-flags
;
inline