Handbook
Glossary
rounding-mode ( -- mode )
Controlling the floating-point environment
Prev:
vm-error-exception-flag? ( error flag -- ? )
Next:
with-rounding-mode ( mode quot -- )
Vocabulary
math
.
floats
.
env
Inputs
None
Outputs
mode
a
fp-rounding-mode
Word description
Returns the current floating-point rounding mode.
See also
with-rounding-mode
Definition
USING:
math.floats.env.private
;
IN:
math.floats.env
:
rounding-mode
( -- mode )
fp-env-register
(get-rounding-mode)
;