summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/release/upcoming_changes/15840.compatibility.rst7
-rw-r--r--doc/release/upcoming_changes/15840.deprecation.rst6
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/release/upcoming_changes/15840.compatibility.rst b/doc/release/upcoming_changes/15840.compatibility.rst
new file mode 100644
index 000000000..2709f133d
--- /dev/null
+++ b/doc/release/upcoming_changes/15840.compatibility.rst
@@ -0,0 +1,7 @@
+Change output of ``round`` on scalars to be consistent with Python
+------------------------------------------------------------------
+
+Output of the ``__round__`` dunder method and consequently the Python
+built-in `round` has been changed to be a Python `int` to be consistent
+with calling it on Python ``float`` objects when called with no arguments.
+Previously, it would return a scalar of the `np.dtype` that was passed in.
diff --git a/doc/release/upcoming_changes/15840.deprecation.rst b/doc/release/upcoming_changes/15840.deprecation.rst
new file mode 100644
index 000000000..cfcfecdb1
--- /dev/null
+++ b/doc/release/upcoming_changes/15840.deprecation.rst
@@ -0,0 +1,6 @@
+Deprecation of `round` for ``np.complexfloating`` scalars
+-----------------------------------------------------------
+
+Output of the ``__round__`` dunder method and consequently the Python built-in
+`round` has been deprecated on complex scalars. This does not affect
+`np.round`. \ No newline at end of file