You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In https://github.com/peteroupc/Numbers/blob/master/Numbers/PeterO/Numbers/EFloat.cs , you set a default rounding mode for Add and other functions. This is given by EContext.UnlimitedHalfEven . Is this rounding mode the same as I'd get if I did arithmetic on C#'s built-in floats? I want to be able to change between those and EFloat, and know that arithmetic will behave the same way regardless.
Wikipedia on the IEEE 754 rounding rules ( https://en.wikipedia.org/wiki/IEEE_754#Rounding_rules ) says that "Round to nearest, ties to even is the default for binary floating point". By this, it means "rounds to the nearest value; if the number falls midway, it is rounded to the nearest value with an even least significant digit". As far as I can see, that's your PeterO.Numbers.ERounding.HalfEven .
The text was updated successfully, but these errors were encountered:
In https://github.com/peteroupc/Numbers/blob/master/Numbers/PeterO/Numbers/EFloat.cs , you set a default rounding mode for
Add
and other functions. This is given byEContext.UnlimitedHalfEven
. Is this rounding mode the same as I'd get if I did arithmetic on C#'s built-in floats? I want to be able to change between those and EFloat, and know that arithmetic will behave the same way regardless.Wikipedia on the IEEE 754 rounding rules ( https://en.wikipedia.org/wiki/IEEE_754#Rounding_rules ) says that "Round to nearest, ties to even is the default for binary floating point". By this, it means "rounds to the nearest value; if the number falls midway, it is rounded to the nearest value with an even least significant digit". As far as I can see, that's your
PeterO.Numbers.ERounding.HalfEven
.The text was updated successfully, but these errors were encountered: