with-rounding-mode ( mode quot -- )

Controlling the floating-point environment

Controlling the floating-point environment

Prev: | rounding-mode ( -- mode ) |

Next: | denormal-mode ( -- mode ) |

Vocabulary

math.floats.env

Inputs

Outputs

None

Word description

Sets the floating-point rounding mode to mode for the dynamic extent of quot, restoring the rounding mode to its original value on quot 's completion.

See also

rounding-mode

Definition

math.floats.env

Inputs

mode | a fp-rounding-mode |

quot | a quotation |

Outputs

None

Word description

Sets the floating-point rounding mode to mode for the dynamic extent of quot, restoring the rounding mode to its original value on quot 's completion.

See also

rounding-mode

Definition

:: with-rounding-mode ( mode quot -- )

rounding-mode :> orig mode set-rounding-mode quot

[ orig set-rounding-mode ] finally ; inline

rounding-mode :> orig mode set-rounding-mode quot

[ orig set-rounding-mode ] finally ; inline

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2187, heads/master-82fec08a0c, Jan 27 2023 16:13:10)