#2796: [with patch, needs review] Integer digits/ndigit disagree on default base
------------------------------+---------------------------------------------
 Reporter:  jbmohler          |        Owner:  somebody
     Type:  defect            |       Status:  new     
 Priority:  major             |    Milestone:  sage-3.2
Component:  basic arithmetic  |   Resolution:          
 Keywords:                    |  
------------------------------+---------------------------------------------
Changes (by zimmerma):

  * summary:  Integer digits/ndigit disagree on default base => [with
              patch, needs review] Integer digits/ndigit
              disagree on default base

Comment:

 the attached patch changes the default base to 10 for digits, so that
 digits and ndigits agree:
 {{{
 sage: n=15
 sage: n.digits()
 [5, 1]
 sage: n.ndigits()
 2
 }}}
 As a consequence, calls to digits() were changed into digits(2).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/2796#comment:1>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to