Handbook
Glossary
fp-traps ( -- exceptions )
Controlling the floating-point environment
Prev:
collect-fp-exceptions ( quot -- exceptions )
Next:
with-fp-traps ( exceptions quot -- )
Vocabulary
math
.
floats
.
env
Inputs
None
Outputs
exceptions
a
sequence
of
fp-exception
s
Word description
Returns the set of floating point exceptions with processor traps currently set.
See also
with-fp-traps
,
without-fp-traps
,
vm-error>exception-flags
,
vm-error-exception-flag?
Definition
USING:
arrays
math.floats.env.private
sequences
sets
;
IN:
math.floats.env
:
fp-traps
( -- exceptions )
(fp-env-registers)
[
(get-fp-traps)
]
[
union
]
map-reduce
>array
;
inline