bevy/crates/bevy_ui
ickshonpe 8edcd8285d
round_ties_up fix (#9548)
# 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.
2023-08-23 18:32:29 +00:00
..
src round_ties_up fix (#9548) 2023-08-23 18:32:29 +00:00
Cargo.toml Bump Version after Release (#9106) 2023-07-10 21:19:27 +00:00