]> git.lizzy.rs Git - rust.git/commitdiff
Move 0.5 rounding to a compat note
authorJosh Stone <jistone@redhat.com>
Sat, 21 Jan 2023 22:56:57 +0000 (14:56 -0800)
committerJosh Stone <jistone@redhat.com>
Sat, 21 Jan 2023 22:56:57 +0000 (14:56 -0800)
RELEASES.md

index 6be38ecca2bc7f0deeb5107883dd71dea2e7921e..ea5a1a8729fcc3d3660cbcdd49b8e0dc36e237e0 100644 (file)
@@ -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