Handbook
Glossary
fp-exception-flags ( -- exceptions )
Controlling the floating-point environment
Next:
set-fp-exception-flags ( exceptions -- )
Vocabulary
math
.
floats
.
env
Inputs
None
Outputs
exceptions
a
sequence
of
fp-exception
s
Word description
Returns the set of floating-point exception flags that have been raised.
See also
set-fp-exception-flags
,
clear-fp-exception-flags
,
collect-fp-exceptions
Definition
USING:
arrays
math.floats.env.private
sequences
sets
;
IN:
math.floats.env
:
fp-exception-flags
( -- exceptions )
(fp-env-registers)
[
(get-exception-flags)
]
[
union
]
map-reduce
>array
;
inline