`fesetround` would be a terrible way for JavaScript to implement this, as it would allow a piece of code to affect the behavior of completely unrelated pieces of code by screwing with global rounding mode bits. That's not going to happen.
I believe there have been proposals to allow greater access to IEEE floating point intrinsics, and I suspect they were better engineered for modularity. Perhaps one of the other readers of this list remembers enough details to give you a good citation. --scott On Wed, Aug 26, 2015 at 9:00 AM, Martin von Gagern <[email protected]> wrote: > Hello! > > Would you consider providing intrinsic functions for directed rounding, > to encapsulate the corresponding features of IEE 754 floating point > computations (resp. the fesetround function of C99)? That would be > useful for mathematical applications, in particular when implementing > interval arithmetic for exact predicates. > > I wrote about this before, on June 20, but probably that post was way > too verbose, since I didn't receive any reaction at all. So I'll keep > the initial post short this time. > > Thanks for any comment, > Martin von Gagern > > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

