Hi Henry,
[...] it might be possible to try to do this with FFI only?
If I understand you correctly, I could use FFI to call an external lib to
perform the actual computation according to the rounding mode, right? In
this case I'd be worry about the performance impact of many FFI calls.
For the same reason, I hope you intend roundByMethodXWhile: to be a
mandatory API, forgetting to set the mode back when done (or, never
getting
there due to errors, etc) is an area best left unexplored ;)
I used roundByMethodXWhile: aBlock just to convey the idea that an API
could work "local" and ensures resetting the rounding mode afterwards. =)
Best, Steffen