AngouriMath

Navigation

Roundf


← Back to list of classes

Description

Summary

A node of round: the nearest integer, with a tie going to the even one.

Remarks

Half to even, which is what Python, SymPy, Mathematica and IEEE 754 all do — and
what .NET's Math.Round does by default, though not what most people expect
of it. So round(1/2) is 0 and round(3/2) is 2, and it
is notfloor(x + 1/2), which differs at every tie.

Members

























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