4 ms·
Factor has a library for setting up floating point environments that might interest you. I think we implemented all of the functionality you might need and it's
by gre 12y ago
Factor has a library for setting up floating point environments that might interest you. I think we implemented all of the functionality you might need and it's nestable with dynamic scoping. I haven't needed to use it for anything though.
Code:
https://github.com/slavapestov/factor/blob/master/basis/math/floats/env/env.factor https://github.com/slavapestov/factor/blob/master/basis/math...
Tests:
https://github.com/slavapestov/factor/blob/master/basis/math/floats/env/env-tests.factor https://github.com/slavapestov/factor/blob/master/basis/math...
Docs:
http://docs.factorcode.org/content/article-math.floats.env.html http://docs.factorcode.org/content/article-math.floats.env.h...