From ddcb02d10a575f88a0599893525ded7337ed648e Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Sat, 21 Jan 2023 14:56:57 -0800 Subject: [PATCH] Move 0.5 rounding to a compat note --- RELEASES.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/RELEASES.md b/RELEASES.md index 6be38ecca2b..ea5a1a8729f 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -71,6 +71,9 @@ These APIs are now stable in const contexts: Compatibility Notes ------------------- +- [0.5 now rounds to 0 when formatted to 0 decimal places.](https://github.com/rust-lang/rust/pull/102935/) + This makes it consistent with the rest of floating point formatting that + rounds ties toward even digits. - [Chains of `&&` and `||` will now drop temporaries from their sub-expressions in evaluation order, left-to-right.](https://github.com/rust-lang/rust/pull/103293/) Previously, it was "twisted" such that the _first_ expression dropped its