#8554: Failed RealNumber conversion from str in base 16.
-------------------------+--------------------------------------------------
   Reporter:  lfousse    |       Owner:  jkantor                       
       Type:  defect     |      Status:  new                           
   Priority:  major      |   Milestone:                                
  Component:  numerical  |    Keywords:  hexadecimal, string conversion
     Author:             |    Upstream:  N/A                           
   Reviewer:             |      Merged:                                
Work_issues:             |  
-------------------------+--------------------------------------------------
 {{{
 sage: RealNumber("1ffef", base=16)
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)

 /opt/sage-4.3.3/<ipython console> in <module>()

 /opt/sage-4.3.3/local/lib/python2.6/site-packages/sage/rings/real_mpfr.so
 in sage.rings.real_mpfr.create_RealNumber (sage/rings/real_mpfr.c:25128)()

 ValueError: invalid literal for int() with base 10: 'f'
 }}}

 The problem arises because 'e' is incorrectly parsed as the
 mantissa/exponent delimiter. If Sage wants to follow MPFR in this regard,
 '@' should be used as a delimiter for base > 10.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8554>
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