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
The implemented fix rounds half-way cases away from zero as described in
the original comments.
This rounding algorithm is sometimes called arithmetic rounding. It is
described further here:
http://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero
I also added several new tests to prevent regressions.
Prints "2/5, 1".
The method is written here:
http://static.rust-lang.org/doc/master/src/num/home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libnum/rational.rs.html#138-140
The text was updated successfully, but these errors were encountered: