summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/23713.improvement.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/release/upcoming_changes/23713.improvement.rst')
-rw-r--r--doc/release/upcoming_changes/23713.improvement.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/23713.improvement.rst b/doc/release/upcoming_changes/23713.improvement.rst
new file mode 100644
index 000000000..15a4f412b
--- /dev/null
+++ b/doc/release/upcoming_changes/23713.improvement.rst
@@ -0,0 +1,9 @@
+Signed and unsigned integers always compare correctly
+-----------------------------------------------------
+When ``uint64`` and ``int64`` are mixed in NumPy, NumPy typically
+promotes both to ``float64``. This behavior may be argued about
+but is confusing for comparisons ``==``, ``<=``, since the results
+returned can be incorrect but the conversion is hidden since the
+result is a boolean.
+NumPy will now return the correct results for these by avoiding
+the cast to float.