[NumPy-Tickets] [NumPy] #1549: base_repr(243, 3) returns '30000'

NumPy Trac numpy-tickets@scipy....
Sat Jul 24 06:07:34 CDT 2010


#1549: base_repr(243, 3) returns '30000'
------------------------+---------------------------------------------------
 Reporter:  kmaglione   |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  2.0.0   
Component:  numpy.core  |     Version:          
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by rgommers):

 I'm assuming you meant 243:

 {{{
 In [22]: np.base_repr(3**4, 3)
 Out[22]: '10000'

 In [23]: np.base_repr(3**5, 3)
 Out[23]: '30000'

 In [24]: np.base_repr(3**6, 3)
 Out[24]: '1000000'

 In [25]: 3**5
 Out[25]: 243
 }}}

 Something does look wrong.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1549#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list