#11796: inconsistency between 0.nbits() and 0.ndigits(base=2)
--------------------------------+-------------------------------------------
   Reporter:  marion            |          Owner:  AlexGhitza
       Type:  defect            |         Status:  new       
   Priority:  minor             |      Milestone:  sage-4.7.2
  Component:  basic arithmetic  |       Keywords:            
Work_issues:                    |       Upstream:  N/A       
   Reviewer:                    |         Author:            
     Merged:                    |   Dependencies:            
--------------------------------+-------------------------------------------
 There is an inconsistency between functions {{{nbits()}}}, {{{bits()}}}
 and {{{digits(base=2)}}} when applied to zero:
 {{{
 sage: 0.nbits()
 1
 sage: 0.ndigits(base=2)
 0
 sage: 0.bits()
 []
 sage: 0.digits(base=2)
 []
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11796>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
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