On 10 October 2014 14:21, David P. Sanders <[email protected]> wrote: > > Actually my current branch does change both rounding modes ;) > I guess the "correct" way to do this would be to nest > `with_rounding(Float64, RoundDown)` inside `with_rounding(BigFloat, > RoundDown)`? > > That should work.
> [By the way, does the `try` block inside `with_rounding` not lead to a > performance penalty compared to just using `set_rounding`? But for some > reason `with_rounding` avoids the problem of returning the rounding mode > that was set instead of value I'm trying to calculate.) > Possibly (I don't know enough about the internals), but the reason for it is so that if the function throws an exception, the rounding mode still gets reset.
