#7829: implement hex for real numbers
------------------------+---------------------------------------------------
   Reporter:  robertwb  |       Owner:  AlexGhitza   
       Type:  defect    |      Status:  new          
   Priority:  minor     |   Milestone:  sage-wishlist
  Component:  algebra   |    Keywords:               
Work_issues:            |      Author:               
   Upstream:  N/A       |    Reviewer:               
     Merged:            |  
------------------------+---------------------------------------------------
 {{{
 sage: float(e).hex()
 '0x1.5bf0a8b145769p+1'
 sage: RR(e).hex()
 ------------------------------------------------------------
 Traceback (most recent call last):
   File "<ipython console>", line 1, in <module>
 AttributeError: 'sage.rings.real_mpfr.RealNumber' object has no attribute
 'hex'
 }}}

 There should probably be a __hex__ method as well, so hex(2.3) works.

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