[Cfp-interest 2582] Re: Floating point rounding modes

Paul Zimmermann Paul.Zimmermann at inria.fr
Tue Jan 3 23:45:11 PST 2023


       Hi Hans,

I have read your proposal. Currently in C if we want correct rounding of the
sine function towards zero we write (assuming the math library supports
correct rounding, or using the new C23 cr_sin function):

   double x, y;
   fesetround (FE_TOWARDZERO);
   y = sin (x); /* or y = cr_sin(x) */

What would be the corresponding lines in your proposal in the *C* language?
(As far as I know, this mailing list only covers C, not C++.)

Best regards,
Paul 


More information about the Cfp-interest mailing list