0

I am looking for documentation that clarifies which IEEE 754 rounding mode the Visual Studio (2022) C++ compiler uses when the _RC_NEAR flag is used to switch floating-point rounding modes.

This MS doc page shows examples for switching rounding to + and - infinity, along with specifying the default rounding method (turns out it is _RC_NEAR if you look in float.h), but I can't find any more detail about _RC_NEAR, if that corresponds to ties to even or ties away from zero, as mentioned on the wikipedia page.

Conrad
  • 2,197
  • 28
  • 53
  • not exactly a dupe but has what you want: https://stackoverflow.com/a/6867722/4342498 – NathanOliver Aug 31 '22 at 15:09
  • @NathanOliver thanks - it's buried in the comments, and then I found it in the fine print of the wikipedia page - the default is *supposed to be* **ties to even** so I guess I'll trust that the MS engineers did that, but it would have been nice to see that explicitly in the docs. – Conrad Aug 31 '22 at 15:21

0 Answers0