OCaml bindings to fenv(3)
The Fenv
module aims to bind fenv(3) functions for floating-point rounding and exception handling. At this point, only bindings for fegetround
and fesetround
are implemented. Please, create an issue if you need more support to fenv functions.
mlfenv is available from opam
, simply run:
opam install mlfenv
mlfenv depends on dune
build system (see opam
to install dune
), then:
dune build @all @runtest
dune install
See the tests
for some examples.