#8860: incoherent types for real numbers
--------------------------------+-------------------------------------------
   Reporter:  zimmerma          |       Owner:  AlexGhitza
       Type:  defect            |      Status:  new       
   Priority:  minor             |   Milestone:            
  Component:  basic arithmetic  |    Keywords:            
     Author:                    |    Upstream:  N/A       
   Reviewer:                    |      Merged:            
Work_issues:                    |  
--------------------------------+-------------------------------------------

Comment(by jason):

 The docstring for RealLiteral indicates what is going on: "RealLiterals
 are created in preparsing and provide a way to allow casting into higher
 precision rings."  So (I think) the digits=50 is casting the RealLiteral
 1.2 object into a RealNumber with the desired precision.  RealLiteral just
 looks like a trivial subclass of RealNumber to just aid in parsing.

 side question: when you say type, do you mean the computer science type
 (i.e., the RealNumber or RealLiteral class)?  Or are you just checking if
 you have a floating point number (i.e., do you want a python floating
 point number to also return True?)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8860#comment:1>
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