AngouriMath

Navigation

← Back to list of members

RoundHalfEven​(PeterO.​Numbers.​EDecimal)

 Method (no overloads)

Summary

Rounds to the nearest integer, a tie going to the even one — what
Roundf means by rounding.

Remarks

Distinct from Round(PeterO.Numbers.EDecimal) just above, which is half up and is what the numeric helpers around it want. The two disagree at every tie:
half up sends 5/2 to 3, half to even sends it to 2. Python, SymPy, Mathematica
and IEEE 754 all mean the latter by "round".

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online