summaryrefslogtreecommitdiff
path: root/numpy/core/fromnumeric.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-09-04 21:52:13 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-09-04 21:52:13 +0000
commit33a5ed76adf630b4ad0f90d02a1dc73d6f086ef8 (patch)
tree5bb6a2b2266630a2a13291cc07de0d9def0bb16b /numpy/core/fromnumeric.py
parentb1e4fe0ae77bc204c3ecbe85e606f846f42d189a (diff)
downloadnumpy-33a5ed76adf630b4ad0f90d02a1dc73d6f086ef8.tar.gz
Fix rounding of integers with decimal < 0
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r--numpy/core/fromnumeric.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py
index 8fb9b6192..fa22d8c76 100644
--- a/numpy/core/fromnumeric.py
+++ b/numpy/core/fromnumeric.py
@@ -556,9 +556,10 @@ def round_(a, decimals=0, out=None):
Reference to out, where None specifies a copy of the original array a.
Round to the specified number of decimals. When 'decimals' is negative it
- specifies the number of positions to the left of the decimal point. The real
- and imaginary parts of complex numbers are rounded separately. Nothing is
- done if the array is not of float type.
+ specifies the number of positions to the left of the decimal point. The
+ real and imaginary parts of complex numbers are rounded separately.
+ Nothing is done if the array is not of float type and 'decimals' is greater
+ than or equal to 0.
The keyword 'out' may be used to specify a different array to hold the
result rather than the default copy of 'a'. If the type of the array