-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
base_repr(243, 3) returns '30000' (Trac #1549) #2146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@rgommers wrote on 2010-07-24 I'm assuming you meant 243:
Something does look wrong. |
trac user kmaglione wrote on 2010-07-24 Sorry, you're right. I meant 243/3**5. For what it's worth, the following returns the correct answer, and 5 times faster:
|
@rgommers wrote on 2010-07-25 "digits" needs to include all letters, not just a-f. A new test for 3**5 should be included as well. |
Attachment added by trac user kmaglione on 2010-07-25: numpy.core.base_repr.diff |
trac user kmaglione wrote on 2010-07-25 Let me know if you need more or less tests. |
@rgommers wrote on 2010-07-28 Committed in r8530 and r8531. Thanks! |
Milestone changed to |
Original ticket http://projects.scipy.org/numpy/ticket/1549 on 2010-07-17 by trac user kmaglione, assigned to unknown.
Calling
base_repr(343, 3)
returns '30000' rather than the expected '100000'.NumPy 1.4.1
%python -V
Python 2.6.5
%uname -a
Linux jg 2.6.34-ARCH #1 SMP PREEMPT Sat Jun 19 00:07:49 CEST 2010 x86_64 AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 AuthenticAMD GNU/Linux
The text was updated successfully, but these errors were encountered: