diff options
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index d4a23d2f1..c784b7fb9 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -308,6 +308,7 @@ def base_repr (number, base=2, padding=0): """ chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ' + import math lnb = math.log(base) res = padding*chars[0] if number == 0: |