Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Objective `round_ties_up` checks the predicate: ```rust 0. <= value || value.fract() != 0.5 ``` which is meant to determine if the value is negative with a fractional part of `0.5`. However given a negative value, `fract` returns a negative fraction so the predicate is true for all numeric values and `ceil` is never called. ## Solution Changed the predicate to `value.fract() != -0.5` and added a test. Also improved the comments a bit.
- Loading branch information